From dc064d58ba1276fd2a6ad5d541846e142f8ec116 Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Tue, 13 May 2008 14:32:39 +0000 Subject: Do not check retbuf if realpath returns NULL --- test/stdlib/test-canon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/stdlib') 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, -- cgit v1.2.3