subdirs: don't return false positives for the '-k' option's presence
[platform/upstream/automake.git] / t / remake-deleted-am-2.sh
index 1d048be..8a316ee 100755 (executable)
@@ -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
@@ -18,7 +18,7 @@
 # of the "deleted header problem".  This test checks deeper inclusion
 # stacks, and use VPATH builds.
 
-. ./defs || Exit 1
+. test-init.sh
 
 echo AC_OUTPUT >> configure.ac
 
@@ -60,7 +60,7 @@ echo '# this is baz' > $srcdir/baz.am
 rm -f $srcdir/fnord.am
 $MAKE
 # Sanity checks.
-$FGREP 'you are not seeing this' $srcdir/Makefile.in Makefile && Exit 1
+$FGREP 'you are not seeing this' $srcdir/Makefile.in Makefile && exit 1
 $FGREP 'this is baz' $srcdir/Makefile.in
 $FGREP 'this is baz' Makefile
 
@@ -69,7 +69,7 @@ rm -rf $srcdir/sub $srcdir/foo.am $srcdir/baz.am
 echo '# no more inclusions' > $srcdir/Makefile.am
 $MAKE
 # Sanity checks.
-$EGREP 'this is (foo|bar|baz)' Makefile $srcdir/Makefile.in && Exit 1
+$EGREP 'this is (foo|bar|baz)' Makefile $srcdir/Makefile.in && exit 1
 $FGREP 'no more inclusions' Makefile
 
 :