test harness: improve catching of usage errors in script 'test-driver'
[platform/upstream/automake.git] / t / comment9.sh
old mode 100755 (executable)
new mode 100644 (file)
index a75fafc..4494490
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2005-2012 Free Software Foundation, Inc.
+# Copyright (C) 2005-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 @@
 # Make sure ##-comments are ignored in variable definitions.
 # Report from Julien Sopena.
 
-. ./defs || Exit 1
+. test-init.sh
 
 cat > Makefile.am << 'EOF'
 TESTS = \
@@ -48,6 +48,6 @@ sed -n -e '/^TESTS =.*\\$/ {
    }' -e '/^TESTS =/ p' Makefile.in > tests
 
 grep '3\.test' tests
-grep '##' tests && Exit 1
-grep '4\.test' tests && Exit 1
+grep '##' tests && exit 1
+grep '4\.test' tests && exit 1
 grep '5\.test' tests