tests: simpler workaround for shells losing the exit status in exit trap
[platform/upstream/automake.git] / t / self-check-cleanup.tap
index d379c43..b2bc7f2 100755 (executable)
@@ -17,7 +17,7 @@
 # Sanity check for the automake testsuite.
 # Check creation/removal of temporary test working directory by './defs'.
 
-. ./defs || Exit 1
+. ./defs || exit 1
 
 plan_ 43
 
@@ -91,7 +91,7 @@ do_clean_setup
 command_ok_ "post-cleanup can deal with low-perms testdir" \
             $AM_TEST_RUNNER_SHELL -c  '
   stderr_fileno_=2
-  . ./defs || Exit 1
+  . ./defs || exit 1
   set -e
   mkdir dir dir/sub
   cd dir
@@ -137,7 +137,7 @@ if test $have_symlinks = yes; then
               $AM_TEST_RUNNER_SHELL -c '
     ocwd=$(pwd) || exit 1
     stderr_fileno_=2
-    . ./defs || Exit 1
+    . ./defs || exit 1
     ln -s "$ocwd/dir" "$ocwd/file" .
   ' t/dummy.sh
   ls -l # For debugging.
@@ -166,7 +166,7 @@ for st in 1 2 3 10 77 99 126 127 130 255; do
     stderr_fileno_=2
     . ./defs
     : > foo
-    Exit $st
+    exit $st
   " t/dummy.sh
   command_ok_ "testdir not removed if exiting with status $st" \
               test -f t/dummy.dir/foo