diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-05-13 14:32:39 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-05-13 14:32:39 +0000 |
commit | dc064d58ba1276fd2a6ad5d541846e142f8ec116 (patch) | |
tree | 006e805aa42b414a4f621095536a5fae96d39f56 /test | |
parent | 962e36b510d84ac2fff991c9597d2bf02b6f2d0b (diff) |
Do not check retbuf if realpath returns NULL
Diffstat (limited to 'test')
-rw-r--r-- | test/stdlib/test-canon.c | 3 |
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, |