]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid file name not portable to cygwin
authorEric Blake <ebb9@byu.net>
Mon, 26 Oct 2009 12:05:44 +0000 (06:05 -0600)
committerEric Blake <ebb9@byu.net>
Mon, 26 Oct 2009 12:05:44 +0000 (06:05 -0600)
* tests/misc/chroot-fail: Use 'no_such', not '...', since cygwin
1.5 silently strips trailing dots.
* tests/misc/nice-fail: Likewise.
* tests/misc/stdbuf: Likewise.
* tests/misc/timeout-parameters: Likewise.

tests/misc/chroot-fail
tests/misc/nice-fail
tests/misc/stdbuf
tests/misc/timeout-parameters

index 5b58293215117dedc13686f2ea8abe6ad1edc871..877ad0aecb6ab33bab176c18aee9f67929e4ec65 100755 (executable)
@@ -41,7 +41,7 @@ if chroot / true ; then
   test $? = 2 || fail=1
   chroot / . # invalid command
   test $? = 126 || fail=1
-  chroot / ... # no such command
+  chroot / no_such # no such command
   test $? = 127 || fail=1
 else
   test $? = 125 || fail=1
index da85eb2b7ef75e8de11a91260f7007c10c87dd9d..7a1bbe8ecea1ec1e73db4215e6f6eab94c60d7a6 100755 (executable)
@@ -39,7 +39,7 @@ nice sh -c 'exit 2' # exit status propagation
 test $? = 2 || fail=2
 nice . # invalid command
 test $? = 126 || fail=1
-nice ... # no such command
+nice no_such # no such command
 test $? = 127 || fail=1
 
 Exit $fail
index 33bc658eaeb6833145b51bfdb6c017a3b322cdb9..90e45d7f09766720ea772e02d6793b4495938f05 100755 (executable)
@@ -56,7 +56,7 @@ test $? = 125 || fail=1
 stdbuf -i0 -o0 -e0 true || fail=1 #check all files
 stdbuf -o1 . # invalid command
 test $? = 126 || fail=1
-stdbuf -o1 ... # no such command
+stdbuf -o1 no_such # no such command
 test $? = 127 || fail=1
 
 # Ensure line buffering stdout takes effect
index 52d4c8aeed7f14b5ddd031fc52cbbcff0b7ae24b..02b63a767f8955154597c3418df0339c08fc31c1 100755 (executable)
@@ -57,7 +57,7 @@ timeout 1 .
 test $? = 126 || fail=1
 
 # no such command
-timeout 1 ...
+timeout 1 no_such
 test $? = 127 || fail=1
 
 Exit $fail