Lines Matching defs:test
1 /* expandargv test program,
63 as \r\n. Thus \n is included in the test data for the file.
65 We use \b to indicate that the test data is the null character.
69 #define FILENAME_PATTERN "test-expandargv-%d.lst"
70 #define ARGV0 "test-expandargv"
76 "@test-expandargv-0.lst",
86 "@test-expandargv-1.lst",
96 "@test-expandargv-2.lst",
105 "@test-expandargv-3.lst",
120 fprintf (stderr, "test-expandargv:%d: %s", line, errmsg);
153 Write test datafile */
156 writeout_test (int test, const char * test_data)
163 /* Unique filename per test */
164 sprintf (filename, FILENAME_PATTERN, test);
167 fatal_error (__LINE__, "Failed to create test file.", errno);
185 Erase the test file */
188 erase_test (int test)
191 sprintf (filename, FILENAME_PATTERN, test);
193 fatal_error (__LINE__, "Failed to erase test file.", errno);
213 /* Write test data */
236 /* Run test: Expand arguments */
243 printf ("FAIL: test-expandargv-%d. Number of arguments don't match.\n", i);
251 printf ("FAIL: test-expandargv-%d. Arguments don't match.\n", i);
256 printf ("PASS: test-expandargv-%d.\n", i);
262 /* Advance to next test */
264 /* Erase test file */
286 - If they compare the same then test passes
287 else the test fails.
288 - Erase test file. */