tests: expose automake bug#13940
[platform/upstream/automake.git] / t / test-driver-fail.sh
old mode 100755 (executable)
new mode 100644 (file)
index fed309e..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
@@ -46,7 +46,7 @@ $AUTOMAKE
 
 # The testsuite driver does not exist.
 $MAKE check && exit 1
-test ! -f test-suite.log
+test ! -e test-suite.log
 
 # The testsuite driver exists and create the test log files, but fails.
 
@@ -59,6 +59,6 @@ END
 chmod a+x oops
 
 $MAKE check && exit 1
-test ! -f test-suite.log
+test ! -e test-suite.log
 
 :