tests: avoid a spurious failure on NetBSD
[platform/upstream/automake.git] / t / cxx-lt-demo.sh
index 3c931e0..9289196 100755 (executable)
@@ -18,7 +18,7 @@
 
 required='libtoolize c++'
 am_create_testdir=empty
-. ./defs || Exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT([GNU C++/Libtool Demo], [0.73], [bug-automake@gnu.org])
@@ -95,9 +95,9 @@ $AUTOMAKE --add-missing --copy
 
 ls -l . ax # For debugging.
 for f in ltmain.sh depcomp config.guess config.sub; do
-  test -f ax/$f && test ! -h ax/$f || Exit 1
+  test -f ax/$f && test ! -h ax/$f || exit 1
 done
-test ! -f ax/compile # Not required by C++ compilers.
+test ! -e ax/compile # Not required by C++ compilers.
 
 cat > src/main.cc << 'END'
 #include "libfoo.h++"
@@ -128,6 +128,6 @@ $MAKE test-objs
 VERBOSE=yes $MAKE check-TESTS
 grep 'Howdy.*Testsuite' try.log || grep 'Skip:.*cross-compiled' try.log
 
-$MAKE -e CC=false distcheck
+$MAKE distcheck
 
 :