tests: expose automake bug#13940
[platform/upstream/automake.git] / t / java-check.sh
old mode 100755 (executable)
new mode 100644 (file)
index 15c0e45..e359c42
@@ -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
@@ -19,7 +19,7 @@
 # See automake bug#8234.
 
 required=javac
-. ./defs || Exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_OUTPUT
@@ -46,7 +46,7 @@ inst=$(pwd)/_inst
 ./configure --prefix="$inst"
 
 $MAKE
-ls | $EGREP '\.(class|stamp)$' && Exit 1
+ls | $EGREP '\.(class|stamp)$' && exit 1
 
 # Make Two.java compilable.
 echo '}' >> Two.java
@@ -57,8 +57,8 @@ ls -l # For debugging.
 test -f One.class
 test -f Two.class
 # ... but should *not* install them.
-$FGREP checkdir Makefile && Exit 1
+$FGREP checkdir Makefile && exit 1
 $MAKE install
-test -d _inst && Exit 1
+test -d _inst && exit 1
 
 :