]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
testsuite: fix spurious failure due to Solaris 'wc' incompatibility
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 21 Aug 2011 16:56:21 +0000 (18:56 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 21 Aug 2011 16:56:53 +0000 (18:56 +0200)
* tests/tap-number-wordboundary.test ($planned): Strip any extra
whitespace from the output of `wc', to cater to Solaris 10.

ChangeLog
tests/tap-number-wordboundary.test

index 70a255f17a9d76c073f31c38ec1cea53ac271e47..3d5b5d9266b790529c76264f682e7a1cef3f951e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-08-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       testsuite: fix spurious failure due to Solaris 'wc' incompatibility
+       * tests/tap-number-wordboundary.test ($planned): Strip any extra
+       whitespace from the output of `wc', to cater to Solaris 10.
+
 2011-08-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        coverage: keyword "SKIP" in TAP plan is case-insensitive
index 5235738eb94d73bb263828dea2c8891883ed2098..74cddc198db64d0696cb13563c3d7a7d9f25d63b 100755 (executable)
@@ -93,7 +93,8 @@ $
 \
 END
 
-planned=`wc -l <punctuation`
+# Strip any extra whitespace, for Solaris' wc.
+planned=`wc -l <punctuation | tr -d " $tab"`
 
 echo 1..$planned > all.test
 awk '{print "ok " NR $0 }' punctuation >> all.test