tests: avoid a spurious failure on NetBSD
[platform/upstream/automake.git] / t / cxxnoc.sh
index 66d0b0d..1cdf58b 100755 (executable)
@@ -16,7 +16,7 @@
 
 # Test to make sure pure C++ sources don't include C-specific code.
 
-. ./defs || Exit 1
+. test-init.sh
 
 cat >> configure.ac << 'END'
 AC_PROG_CXX
@@ -33,5 +33,5 @@ END
 $ACLOCAL
 $AUTOMAKE
 
-$FGREP '(CC)' Makefile.in && Exit 1
-Exit 0
+$FGREP '(CC)' Makefile.in && exit 1
+exit 0