From 0cc0424119ec66c9005fb905cc1001a64b978ce3 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 27 Oct 2009 14:08:14 -0600 Subject: tests: fix PATH problems on cygwin * tests/misc/sort-compress: Remove non-portable over-restriction of PATH; besides, commit 3ea177e changed sort to no longer default to gzip. * tests/rm/fail-eperm: Untaint, rather than clear, PATH. * tests/misc/pwd-long: Likewise. Also skip test if long path cannot be created. (normalize_to_cwd_relative): Use eq rather than ==, since cygwin perl doesn't properly handle 64-bit ino_t numerically. --- tests/misc/sort-compress | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'tests/misc/sort-compress') diff --git a/tests/misc/sort-compress b/tests/misc/sort-compress index 487d18574..7e319ca8e 100755 --- a/tests/misc/sort-compress +++ b/tests/misc/sort-compress @@ -32,7 +32,7 @@ TMPDIR=.; export TMPDIR fail=0 -# This should force the use of temp files compressed with the default gzip +# This should force the use of temp files sort -S 1k in > out || fail=1 compare exp out || fail=1 @@ -69,8 +69,4 @@ compare exp out || fail=1 test -f ok || fail=1 rm -f dzip ok -# This is to make sure sort functions if it can't find the default gzip -PATH=. "$SORT" -S 1k in > out || fail=1 -compare exp out || fail=1 - Exit $fail -- cgit v1.2.3-54-g00ecf