tests: expose automake bug#13940
[platform/upstream/automake.git] / t / tests-environment.sh
old mode 100755 (executable)
new mode 100644 (file)
index 62ca4ee..444067e
@@ -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 @@
 # "Simple Tests" testsuite driver: check TESTS_ENVIRONMENT support.
 
 am_serial_tests=yes
-. ./defs || Exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
@@ -41,6 +41,6 @@ $AUTOMAKE -a
 ./configure
 
 FOO=bad TESTS_ENVIRONMENT='FOO=ok'  $MAKE check
-FOO=ok  TESTS_ENVIRONMENT='FOO=bad' $MAKE check && Exit 1
+FOO=ok  TESTS_ENVIRONMENT='FOO=bad' $MAKE check && exit 1
 
 :