test harness: improve catching of usage errors in script 'test-driver'
[platform/upstream/automake.git] / t / depend6.sh
old mode 100755 (executable)
new mode 100644 (file)
index fb4c140..17defb4
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2008-2012 Free Software Foundation, Inc.
+# Copyright (C) 2008-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 for _AM_OUTPUT_DEPENDENCY_COMMANDS grouping bug,
 # reported by Markus Duft.
 
-. ./defs || Exit 1
+. test-init.sh
 
 cat >>configure.ac << END
 AC_PROG_CC
@@ -38,9 +38,9 @@ $ACLOCAL
 $AUTOMAKE
 $AUTOCONF
 ./configure --disable-dependency-tracking 2>stderr || {
-  stat=$?; cat stderr >&2; Exit $stat;
+  stat=$?; cat stderr >&2; exit $stat;
 }
 cat stderr >&2
-grep shift stderr && Exit 1
+grep shift stderr && exit 1
 
 :