summaryrefslogtreecommitdiff
path: root/t/missing3.sh
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-06-28 13:27:49 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-06-28 13:37:53 +0200
commitb21d68690612214d8edd810acf11880c3c0ad586 (patch)
tree7506c8901d7d16c4a5603a11e567b9e6315c9e9d /t/missing3.sh
parentda9ad6fafeaf5dfa710a1a2b4176d1a049fddf13 (diff)
parentd25fac43a7c239fe8f56b2ce1b87ef3e3d4d7ef0 (diff)
downloadautomake-b21d68690612214d8edd810acf11880c3c0ad586.tar.gz
Merge branch 'maint'
* maint: tests: simpler workaround for shells losing the exit status in exit trap + Extra non-trivial edits: * Several tests: Adjusted to use 'exit' rather than 'Exit'. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/missing3.sh')
-rwxr-xr-xt/missing3.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/t/missing3.sh b/t/missing3.sh
index e8641da18..3a9ba013f 100755
--- a/t/missing3.sh
+++ b/t/missing3.sh
@@ -17,7 +17,7 @@
# Test missing when running a tool's --version.
am_create_testdir=empty
-. ./defs || Exit 1
+. ./defs || exit 1
get_shell_script missing
@@ -31,18 +31,18 @@ run_cmd ()
return $st
}
-./missing b7cb8259 --version && Exit 1
-grep WARNING stderr && Exit 1
-run_cmd ./missing b7cb8259 --grep && Exit 1
+./missing b7cb8259 --version && exit 1
+grep WARNING stderr && exit 1
+run_cmd ./missing b7cb8259 --grep && exit 1
grep 'WARNING:.*missing on your system' stderr
# missing itself it known to exist :)
-run_cmd ./missing ./missing --version || Exit 1
+run_cmd ./missing ./missing --version || exit 1
grep 'missing .*(GNU [aA]utomake)' stdout
-test -s stderr && Exit 1
-run_cmd ./missing ./missing --grep && Exit 1
-grep WARNING stderr && Exit 1
+test -s stderr && exit 1
+run_cmd ./missing ./missing --grep && exit 1
+grep WARNING stderr && exit 1
grep "missing:.* unknown '--grep'" stderr
: