diff options
Diffstat (limited to 'stdlib/test-canon.c')
-rw-r--r-- | stdlib/test-canon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/test-canon.c b/stdlib/test-canon.c index 6f0171d200..8d04bb6ba0 100644 --- a/stdlib/test-canon.c +++ b/stdlib/test-canon.c @@ -45,7 +45,7 @@ struct { struct { const char * in, * out, * resolved; - int errno; + int error; } tests[] = { /* 0 */ {"/", "/"}, @@ -145,10 +145,10 @@ main (int argc, char ** argv) continue; } - if (!tests[i].out && errno != tests[i].errno) + if (!tests[i].out && errno != tests[i].error) { printf ("%s: flunked test %d (expected errno %d, got %d)\n", - argv[0], i, tests[i].errno, errno); + argv[0], i, tests[i].errno, error); ++errors; continue; } |