diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-06-29 00:48:11 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-06-29 00:48:11 +0200 |
commit | bf258729df870cf308f9f92e833d75f192d48a2d (patch) | |
tree | d835872bfd85ec82eb047e2eb4ec3f2c9d6d4731 /t/vala-parallel.sh | |
parent | e857a8e7e44592e98848177271d1b41710e4fdaa (diff) | |
download | automake-bf258729df870cf308f9f92e833d75f192d48a2d.tar.gz |
tests: prefer "test ! -e FILE" to check that a file doesn't exist
Once, for the sake of (at least) Solaris 10 /bin/sh, we had to use
"test ! -f FILE" or "test ! -r FILE" or "test ! -d FILE" instead,
because the that shell's 'test' built-in didn't grok the '-e' option.
Note however that we still can't use "test ! -e" in the Makefile recipes
used in the test cases; that is because those recipes are run with the
shell detected by 'configure', and Autoconf-generated configure scripts
do no guarantee to find or provide a POSIX-compatible shell.
* Several tests: Adjust.
* t/yacc-clean-cxx: Adjust, and remove a couple of useless commands.
* t/parallel-tests-dry-run-2.sh: Adjust, and add invocation to
"make -n" forgotten in previous versions of the test.
* t/txinfo26.sh: Adjust, and don't bother to skip the test when it's
run in a directory whose absolute path contain whitespace: that setup
is not supported anyway.
* t/maken3.sh: Adjust, and fix a typo that could cause a minor false
negative.
* t/test-trs-recover2.sh: Prefer using 'skip_' with a suitable error
message over a bare 'exit 77'.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/vala-parallel.sh')
-rwxr-xr-x | t/vala-parallel.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/vala-parallel.sh b/t/vala-parallel.sh index 3b659a88d..d03080dcc 100755 --- a/t/vala-parallel.sh +++ b/t/vala-parallel.sh @@ -54,8 +54,8 @@ test -f zardoz_vala.stamp $MAKE maintainer-clean -j4 ls -l # For debugging. -for x in main 1 2 3 4 5 6; do test ! -f $x.c; done -test ! -f zardoz_vala.stamp +for x in main 1 2 3 4 5 6; do test ! -e $x.c; done +test ! -e zardoz_vala.stamp mkdir build cd build @@ -68,7 +68,7 @@ test -f ../zardoz_vala.stamp $MAKE distcheck -j4 $MAKE maintainer-clean -j2 -for x in main 1 2 3 4 5 6; do test ! -f ../$x.c; done -test ! -f ../zardoz_vala.stamp +for x in main 1 2 3 4 5 6; do test ! -e ../$x.c; done +test ! -e ../zardoz_vala.stamp : |