]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Use "cat", not "test", to test for
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 18 Apr 2005 18:37:36 +0000 (18:37 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 18 Apr 2005 18:37:36 +0000 (18:37 +0000)
../../src/dd.  Problem reported by Eric Blake.

tests/install/basic-1

index c3e16b40be4f33a1cff2e74d6b6ca5bb41ca18cc..86450dea5c7cff513c33ebe1995ac363d54985bf 100755 (executable)
@@ -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
 }