diff options
author | Jim Meyering <jim@meyering.net> | 2007-03-02 14:25:48 +0100 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-03-02 14:25:48 +0100 |
commit | fe4f1227a50c7a1c95768fc608a502fa6a00b300 (patch) | |
tree | 8a86cdd6c46d5b040ceddb0932f5a27dba4b653f /tests/misc/pwd-unreadable-parent | |
parent | 13a4b23e792777a9aa0c19bf120c9aa85a6b0f13 (diff) | |
download | coreutils-fe4f1227a50c7a1c95768fc608a502fa6a00b300.tar.xz |
pwd-unreadable-parent: Skip test on non-Linux/GNU systems.
* tests/misc/pwd-unreadable-parent: Rather than trying to decide
whether this test has a chance of succeeding, run it only when
$(host_os) is linux-gnu. It was failing on powerpc-apple-darwin8.8.0
* tests/misc/Makefile.am (TESTS_ENVIRONMENT): Add host_os=$(host_os).
Diffstat (limited to 'tests/misc/pwd-unreadable-parent')
-rwxr-xr-x | tests/misc/pwd-unreadable-parent | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/misc/pwd-unreadable-parent b/tests/misc/pwd-unreadable-parent index ace73f957..801805ad7 100755 --- a/tests/misc/pwd-unreadable-parent +++ b/tests/misc/pwd-unreadable-parent @@ -26,17 +26,9 @@ if test "$VERBOSE" = yes; then readlink --version fi -skip=1 -# Run this test IFF: -# if REPLACE_GETCWD is 0 (system getcwd is good enough) -# or HAVE_PARTLY_WORKING_GETCWD is defined -test $REPLACE_GETCWD = 0 && skip=0 -test $skip = 1 && - grep '^#define HAVE_PARTLY_WORKING_GETCWD ' $CONFIG_HEADER > /dev/null && - skip=0 -test $skip = 1 && +test $host_os != linux-gnu && { - echo 1>&2 "$0: inadequate system getcwd; skipping this test" + echo 1>&2 "$0: vendor getcwd may be inadequate; skipping this test" (exit 77); exit 77 } |