From: Eric Blake Date: Mon, 26 Oct 2009 12:05:44 +0000 (-0600) Subject: tests: avoid file name not portable to cygwin X-Git-Tag: v8.1~76 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dae24f5ffc4846ce5178b3f765aec9074ce73b08;p=thirdparty%2Fcoreutils.git tests: avoid file name not portable to cygwin * 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. --- diff --git a/tests/misc/chroot-fail b/tests/misc/chroot-fail index 5b58293215..877ad0aecb 100755 --- a/tests/misc/chroot-fail +++ b/tests/misc/chroot-fail @@ -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 diff --git a/tests/misc/nice-fail b/tests/misc/nice-fail index da85eb2b7e..7a1bbe8ece 100755 --- a/tests/misc/nice-fail +++ b/tests/misc/nice-fail @@ -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 diff --git a/tests/misc/stdbuf b/tests/misc/stdbuf index 33bc658eae..90e45d7f09 100755 --- a/tests/misc/stdbuf +++ b/tests/misc/stdbuf @@ -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 diff --git a/tests/misc/timeout-parameters b/tests/misc/timeout-parameters index 52d4c8aeed..02b63a767f 100755 --- a/tests/misc/timeout-parameters +++ b/tests/misc/timeout-parameters @@ -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