]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
testsuite: fix spurious errors in an xfailing test on TAP support
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 1 Aug 2011 16:43:30 +0000 (18:43 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 2 Aug 2011 21:31:32 +0000 (23:31 +0200)
* 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.

ChangeLog
tests/tap-bad-prog.test

index 2f7385d08a8d0c474833f744a81bf49750b8babb..a155e2daabd5d79a1025663dd134937dbf18fe63 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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
index af54b2e98c8da609f7ceb6d8cb34fc0c910e3dd3..e20009d0402ed8466a37ed5f071ac8e59aee567f 100755 (executable)
@@ -44,11 +44,9 @@ END
 ./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
@@ -60,9 +58,9 @@ $MAKE check >stdout && { cat stdout; Exit 1; }
 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