]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: avoid yet other spurious failures on NetBSD
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 13 Feb 2012 23:14:36 +0000 (00:14 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 13 Feb 2012 23:15:22 +0000 (00:15 +0100)
* tests/tap-signal.tap: Add a "strategically placed" extra 'echo'
command and a temporary silencing of xtraces; they are required
to avoid possible garbled output with NetBSD make, which would
miss some final newlines in the expected places and thus mess up
our TAP output.

tests/tap-signal.tap

index f436bc88a639482750bada3177ce79238f05da7c..e14cc50c31d633402a7806d23ff8aa0d985a19f0 100755 (executable)
@@ -98,7 +98,15 @@ signal_caught ()
   esac
 }
 
-command_ok_ '"make check" fails' eval 'not $MAKE check >stdout'
+command_ok_ '"make check" fails' eval '
+  (
+    st=0; $MAKE check >stdout || st=$?
+    # Extra "echo" and silencing of xtraces required to avoid possible
+    # garbled output with NetBSD make, which would miss some final
+    # newlines in the expected places and thus mess up our TAP output.
+    set +x; echo
+  )
+'
 cat stdout # For debugging.
 
 command_ok_ "count of test results" count_test_results \