summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-03-03 21:28:01 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2012-03-03 21:37:17 -0800
commit49b68f063e33f22814de0ce01f4b7119d5c776c3 (patch)
tree4b6aa08fc3701f00c28132464e7526504abf74ea
parentbb454862bb167fb9aeb5222edd5ec1ab974754e1 (diff)
downloadautoconf-49b68f063e33f22814de0ce01f4b7119d5c776c3.tar.gz
tests: port AS_TR_SH and AS_TR_CPP test to Solaris 8 wc
* tests/m4sh.at (AS@&t@_TR_SH and AS@&t@_TR_CPP): Do not assume that "wc -l" outputs only digits; on Solaris 8 it also outputs blanks and POSIX allows this.
-rw-r--r--tests/m4sh.at5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/m4sh.at b/tests/m4sh.at
index 9456899a..8e9d1fec 100644
--- a/tests/m4sh.at
+++ b/tests/m4sh.at
@@ -1559,9 +1559,10 @@ A_B_C_P__
dnl Check that of the last 6 macros, only 2 needed command substitution.
dnl This test abuses our knowledge of m4sh internals a bit; oh well.
-AT_CHECK([sed -n '/start here/,$ {
+AT_CHECK([tab=' ' # a single ASCII tab character
+sed -n '/start here/,$ {
/`.*`/p
-}' script | wc -l], [], [[2
+}' script | wc -l | sed "s/[[ $tab]]//g" ], [], [[2
]])
AT_CLEANUP