]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: fix spurious Cygwin failure of a test on TAP support
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 7 Sep 2011 14:50:09 +0000 (16:50 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 7 Sep 2011 14:50:09 +0000 (16:50 +0200)
* tests/tap-bad-prog.tap (noexec.test): Add forgotten `echo'.
When trying to run it, redirect its output to /dev/null, to
avoid confusing automake's testsuite own TAP driver.

ChangeLog
tests/tap-bad-prog.tap

index 9759787c0d9c22d01b862cc82097a694c191c210..4aaee9a2916c938da162b351e6da02d983056559 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-09-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       tests: fix spurious Cygwin failure of a test on TAP support
+       * tests/tap-bad-prog.tap (noexec.test): Add forgotten `echo'.
+       When trying to run it, redirect its output to /dev/null, to
+       avoid confusing automake's testsuite own TAP driver.
+
 2011-09-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        test defs: fix glitch in TAP version of `warn_' function
index 1ced399d3fe1ed22d4ec358dc495e354715f5871..3cc5e217a0c22a3bdba927372a2d03a418896b34 100755 (executable)
@@ -38,7 +38,7 @@ END
 cat > noexec.test <<'END'
 #!/bin/sh
 echo 1..1
-ok 1
+echo ok 1
 END
 
 cp noexec.test noread.test
@@ -60,7 +60,8 @@ command_ok_ "non-existent test is reported" \
             grep '^ERROR: none\.test' stdout
 
 desc="non-executable test is reported"
-if ./noexec.test; then
+# Redirect output to avoid confusing automake's testsuite own TAP driver.
+if ./noexec.test >/dev/null; then
   skip_ -r "any file is executable" "$desc"
 else
   command_ok_ "$desc" -- grep '^ERROR: noexec\.test' stdout