tests: prune some weed in a non-POSIX test
[platform/upstream/automake.git] / t / parallel-tests-unreadable.sh
old mode 100755 (executable)
new mode 100644 (file)
index 98591e6..80db5d1
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2011-2012 Free Software Foundation, Inc.
+# Copyright (C) 2011-2013 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 # Check that the testsuite driver copes well with unreadable '.log'
 # and '.trs' files.
 
-. ./defs || Exit 1
+. test-init.sh
 
 : > t
 chmod a-r t && test ! -r t || skip_ "you can still read unreadable files"
@@ -60,7 +60,7 @@ for files in \
   $MAKE check
   rm -f test-suite.log
   chmod a-r $files
-  $MAKE test-suite.log || { ls -l; Exit 1; }
+  $MAKE test-suite.log || { ls -l; exit 1; }
   ls -l
   grep '^foofoofoo$' foo.log
   grep '^:test-result: PASS' foo.trs
@@ -68,7 +68,7 @@ for files in \
   grep '^:test-result: SKIP' bar.trs
   grep '^SKIP: bar' test-suite.log
   grep '^barbarbar$' test-suite.log
-  $EGREP ':.*foo|foofoofoo' test-suite.log && Exit 1
+  $EGREP ':.*foo|foofoofoo' test-suite.log && exit 1
   : For shells with busted 'set -e'.
 done