test harness: improve catching of usage errors in script 'test-driver'
[platform/upstream/automake.git] / t / cond41.sh
old mode 100755 (executable)
new mode 100644 (file)
index 7c59a0a..87d4421
@@ -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
 
 # AM_COND_IF with an undefined condition should fail.
 
-. ./defs || Exit 1
+. test-init.sh
 
 cat >>configure.ac <<'END'
 AM_COND_IF([BAD_COND], [AC_CONFIG_FILES([file1])])
 AC_OUTPUT
 END
 
-$ACLOCAL 2>stderr && { cat stderr >&2; Exit 1; }
+$ACLOCAL 2>stderr && { cat stderr >&2; exit 1; }
 cat stderr >&2
 grep '^configure\.ac:4:.*AM_COND_IF.* no such condition.*BAD_COND' stderr