pwd-unreadable-parent: Skip test on ia64/Linux, too.
authorJim Meyering <jim@meyering.net>
Sat, 3 Mar 2007 20:38:16 +0000 (21:38 +0100)
committerJim Meyering <jim@meyering.net>
Sat, 3 Mar 2007 20:38:16 +0000 (21:38 +0100)
* tests/misc/pwd-unreadable-parent: Also skip when $REPLACE_GETCWD.
Reported by Bob Proulx.

ChangeLog
tests/misc/pwd-unreadable-parent

index b713a69..4a92b16 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-03-03  Jim Meyering  <jim@meyering.net>
+
+       pwd-unreadable-parent: Skip test on ia64/Linux, too.
+       * tests/misc/pwd-unreadable-parent: Also skip when $REPLACE_GETCWD.
+       Reported by Bob Proulx.
+
 2007-03-02  Jim Meyering  <jim@meyering.net>
 
        pwd-unreadable-parent: Skip test on non-Linux/GNU systems.
index 801805a..72c666e 100755 (executable)
@@ -32,6 +32,14 @@ test $host_os != linux-gnu &&
     (exit 77); exit 77
   }
 
+# Linux ia64 has the gl_FUNC_GETCWD_ABORT_BUG, so we can't use
+# the system getcwd.
+test $REPLACE_GETCWD = 1 &&
+  {
+    echo 1>&2 "$0: can't use buggy system getcwd; skipping this test"
+    (exit 77); exit 77
+  }
+
 pwd=`pwd`
 t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
 trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0