+2011-08-01 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ testsuite: fix spurious errors in an xfailing test on TAP support
+ * tests/plan-bad-prog.test: Fix typo in the name of the test
+ being made unreadable. Correct the wording of the potential
+ skip message, and simplify the condition under which the test
+ is to be skipped. Escape literal dots in grep regexps.
+
2011-08-01 Stefano Lattarini <stefano.lattarini@gmail.com>
testsuite: better granularity in a couple of tests on TAP support
./noexec.test && skip_ "can't have non-executable files"
cp noexec.test noread.test
-chmod a-r noread
+chmod a-r noread.test
-if test -r noread.test || cat noread.test; then
- skip_ "can't have readonly files"
-fi
+test -r noread.test && skip_ "you can still read unreadable files"
$ACLOCAL
$AUTOCONF
cat stdout
# FIXME: maybe better error messages?
-grep '^ERROR: none.test' stdout
-grep '^ERROR: noexec.test' stdout
-grep '^ERROR: noread.test' stdout
+grep '^ERROR: none\.test' stdout
+grep '^ERROR: noexec\.test' stdout
+grep '^ERROR: noread\.test' stdout
count_test_results total=3 pass=0 fail=0 xpass=0 xfail=0 skip=0 error=3