tests: expose automake bug#13940
[platform/upstream/automake.git] / t / test-driver-fail.sh
old mode 100755 (executable)
new mode 100644 (file)
index 75f6a87..4a3c54f
@@ -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
@@ -22,7 +22,7 @@
 # (like our dummy one in this test) might leave around a test log even
 # in case of internal failures.
 
-. ./defs || Exit 1
+. test-init.sh
 
 cat >> configure.ac <<'END'
 AC_OUTPUT
@@ -45,8 +45,8 @@ $AUTOMAKE
 ./configure
 
 # The testsuite driver does not exist.
-$MAKE check && Exit 1
-test ! -f test-suite.log
+$MAKE check && exit 1
+test ! -e test-suite.log
 
 # The testsuite driver exists and create the test log files, but fails.
 
@@ -58,7 +58,7 @@ exit 1
 END
 chmod a+x oops
 
-$MAKE check && Exit 1
-test ! -f test-suite.log
+$MAKE check && exit 1
+test ! -e test-suite.log
 
 :