test-getcwd.c: avoid new set-but-not-used warning
authorJim Meyering <meyering@redhat.com>
Fri, 29 Apr 2011 07:53:25 +0000 (09:53 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 29 Apr 2011 08:18:48 +0000 (10:18 +0200)
commitc1bb7ba6ba9e685da05f48da5368d9342ba272c1
tree5e11ccb978a8f9119c341a33a823b4b5483e34f2
parent20abe9a92c71d7ccb46484543e874f8b357d5f4f
test-getcwd.c: avoid new set-but-not-used warning

* tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
not just the glibc/abort one that getcwd-abort-bug.m4 detects.
This also adds an additional test for an unlikely chdir("..") failure.
* m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
ChangeLog
m4/getcwd-abort-bug.m4
tests/test-getcwd.c