aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/wsbatch.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/wsbatch.c b/tests/wsbatch.c
index 5d986db..372c3ba 100644
--- a/tests/wsbatch.c
+++ b/tests/wsbatch.c
@@ -44,3 +44,3 @@ runtest (const char **input, struct wordsplit *wsinit, int flags)
44 { 44 {
45 fprintf (stderr, "E: %s: parse failed\n", input); 45 fprintf (stderr, "E: %s: parse failed\n", text);
46 errors++; 46 errors++;
@@ -50,3 +50,4 @@ runtest (const char **input, struct wordsplit *wsinit, int flags)
50 fprintf (stderr, "E: %s: wrong number of fields (%lu/%lu)\n", 50 fprintf (stderr, "E: %s: wrong number of fields (%lu/%lu)\n",
51 text, ws.ws_wordc, j); 51 text,
52 (unsigned long) ws.ws_wordc, (unsigned long) j);
52 errors++; 53 errors++;
@@ -61,3 +62,4 @@ runtest (const char **input, struct wordsplit *wsinit, int flags)
61 fprintf (stderr, "E: %s: word %lu mismatch: %s/%s\n", 62 fprintf (stderr, "E: %s: word %lu mismatch: %s/%s\n",
62 text, k, ws.ws_wordv[k], input[i + k]); 63 text, (unsigned long) k,
64 ws.ws_wordv[k], input[i + k]);
63 errors++; 65 errors++;
@@ -140,5 +142,5 @@ main ()
140 142
141 printf ("Tests: %lu\n", count); 143 printf ("Tests: %lu\n", (unsigned long) count);
142 if (errors) 144 if (errors)
143 printf ("Failures: %lu\n", errors); 145 printf ("Failures: %lu\n", (unsigned long) errors);
144 return errors ? 1 : 0; 146 return errors ? 1 : 0;

Return to:

Send suggestions and report system problems to the System administrator.