* 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>
+
+ 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
cat > noexec.test <<'END'
#!/bin/sh
echo 1..1
-ok 1
+echo ok 1
END
cp noexec.test noread.test
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