summaryrefslogtreecommitdiff
path: root/test/stdlib/test-canon.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/stdlib/test-canon.c')
-rw-r--r--test/stdlib/test-canon.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/stdlib/test-canon.c b/test/stdlib/test-canon.c
index f37478d63..9770a948d 100644
--- a/test/stdlib/test-canon.c
+++ b/test/stdlib/test-canon.c
@@ -188,8 +188,7 @@ do_test (int argc, char ** argv)
continue;
}
- if ((tests[i].retval || tests[i].retbuf)
- && !check_path (buf, tests[i].retval ? tests[i].retval : tests[i].retbuf))
+ if (result && !check_path (buf, tests[i].retval ? tests[i].retval : tests[i].retbuf))
{
printf ("%s: flunked test %d (expected resolved `%s', got `%s')\n",
argv[0], i, tests[i].retval ? tests[i].retval : tests[i].retbuf,