tests: avoid a spurious failure on MSYS
[platform/upstream/automake.git] / t / distcheck-configure-flags.sh
index 3c23117..15adf47 100644 (file)
@@ -41,14 +41,13 @@ $AUTOCONF
 # make command line or in the environment.
 
 env DISTCHECK_CONFIGURE_FLAGS='--enable-success sentence=it\ works\ :-\)' \
-  $MAKE distcheck # Not 'make -e' here, deliberately.
+  $MAKE distcheck
 
 $MAKE distcheck \
   DISTCHECK_CONFIGURE_FLAGS="--enable-success=yes sentence='it works :-)'"
 
 # Sanity check.
-$MAKE distcheck >output 2>&1 && { cat output; exit 1; }
-cat output
+run_make -M -e FAIL distcheck
 grep "^configure:.* success='no', sentence=''" output
 
 :