automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI] {test-protocols} testsuite: fix spurious failure due to Solaris 'w


From: Stefano Lattarini
Subject: [FYI] {test-protocols} testsuite: fix spurious failure due to Solaris 'wc' incompatibility
Date: Sun, 21 Aug 2011 18:59:46 +0200

* tests/tap-number-wordboundary.test ($planned): Strip any extra
whitespace from the output of `wc', to cater to Solaris 10.
---
 ChangeLog                          |    6 ++++++
 tests/tap-number-wordboundary.test |    3 ++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 70a255f..3d5b5d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-08-21  Stefano Lattarini  <address@hidden>
 
+       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  <address@hidden>
+
        coverage: keyword "SKIP" in TAP plan is case-insensitive
        * tests/tap-planskip-case-insensitive.test: New test.
        * tests/tap-planskip.test: Remove now-duplicated checks.
diff --git a/tests/tap-number-wordboundary.test 
b/tests/tap-number-wordboundary.test
index 5235738..74cddc1 100755
--- a/tests/tap-number-wordboundary.test
+++ b/tests/tap-number-wordboundary.test
@@ -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
-- 
1.7.2.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]