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 5b58293..877ad0a 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 da85eb2..7a1bbe8 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 33bc658..90e45d7 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 52d4c8a..02b63a7 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