tests: avoid a spurious failure on NetBSD
[platform/upstream/automake.git] / t / cxx-lt-demo.sh
index 0ccd953..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])
@@ -53,7 +53,7 @@ TESTS = try.sh
 check-local: test-objs
 test-objs:
        test -f src/main.$(OBJEXT)
-       test -f lib/libfoo.$(OBJEXT)
+       test -f lib/libfoo.lo
 END
 
 cat > src/Makefile.am << 'END'
@@ -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++"