test harness: improve catching of usage errors in script 'test-driver'
[platform/upstream/automake.git] / t / mdate6.sh
old mode 100755 (executable)
new mode 100644 (file)
index ca3ca21..4a0dbb7
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2010-2012 Free Software Foundation, Inc.
+# Copyright (C) 2010-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 @@
 # mdate-sh can work with weird file names, doesn't eval too much.
 
 am_create_testdir=empty
-. ./defs || Exit 1
+. test-init.sh
 
 a=
 file='file  name $a'
@@ -27,7 +27,7 @@ file='file  name $a'
 get_shell_script mdate-sh
 
 ./mdate-sh "$file" >stdout 2>stderr ||
-  { cat stdout; cat stderr >&2; Exit 1; }
+  { cat stdout; cat stderr >&2; exit 1; }
 cat stdout
 cat stderr >&2
 grep '[12][0-9]\{3\}' stdout