/[ascend]/trunk/base/generic/utilities/test/test_readln.c
ViewVC logotype

Diff of /trunk/base/generic/utilities/test/test_readln.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 60 by jds, Mon Oct 31 03:39:15 2005 UTC revision 61 by jds, Mon Nov 14 02:37:20 2005 UTC
# Line 63  static void test_readln(void) Line 63  static void test_readln(void)
63      infile = redirect_stdin(infilename);      infile = redirect_stdin(infilename);
64      CU_TEST(-1 == readln(NULL, STR_LEN));             /* NULL str */      CU_TEST(-1 == readln(NULL, STR_LEN));             /* NULL str */
65      rewind(infile);      rewind(infile);
66      CU_TEST(0 == readln(str1, 0));                   /* max = 0 */      CU_TEST(0 == readln(str1, 0));                    /* max = 0 */
67      rewind(infile);      rewind(infile);
68      CU_TEST(-1 == readln(str1, STR_LEN));             /* read, but stream empty */      CU_TEST(-1 == readln(str1, STR_LEN));             /* read, but stream empty */
69      reset_stdin();      reset_stdin();

Legend:
Removed from v.60  
changed lines
  Added in v.61

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22