summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-04-18 18:37:36 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-04-18 18:37:36 +0000
commit17d40155b4e5020e5d518a1d30b042a20509acc8 (patch)
tree64cd1ea9f7e3b59b5e77418f6d02b101a2e0df12
parent60910381af453b2ee3ecb591bf35334459ba4a18 (diff)
downloadcoreutils-17d40155b4e5020e5d518a1d30b042a20509acc8.tar.xz
Use "cat", not "test", to test for
../../src/dd. Problem reported by Eric Blake.
-rwxr-xr-xtests/install/basic-14
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/install/basic-1 b/tests/install/basic-1
index c3e16b40b..86450dea5 100755
--- a/tests/install/basic-1
+++ b/tests/install/basic-1
@@ -8,7 +8,9 @@ fi
dir=dir
file=file
-test -r ../../src/dd || {
+# Skip this test if we're on a non-POSIX platform where executable's names end
+# in .exe, or we have some other problem like that.
+cat ../../src/dd > /dev/null || {
echo >&2 "$0: ../../src/dd is not readable, so can't run this test"
exit 77
}