]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
testsuite: fix an unportable use of sed
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 12 Aug 2011 21:49:57 +0000 (23:49 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 13 Aug 2011 08:29:13 +0000 (10:29 +0200)
* tests/tap-todo-skip-whitespace.test: Alternation with "\|" in
sed regular expressions is not portable to (at least) FreeBSD
sed; do not use it.

ChangeLog
tests/tap-todo-skip-whitespace.test

index 98ce73e9c4f0204bd67dbdb01ba9a069ccca69b4..bf629e11cf15d7c5c9cb5685fbe970e42047aef0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-08-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       testsuite: fix an unportable use of sed
+       * tests/tap-todo-skip-whitespace.test: Alternation with "\|" in
+       sed regular expressions is not portable to (at least) FreeBSD
+       sed; do not use it.
+
 2011-08-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        testsuite: avoid spurious failure if rst2html program is missing
index 695e98c2c4d5dfff2178c2e5c3d36510f1390eb2..fe32c97a37b22f1dc1b744613736be1e1ef505ee 100755 (executable)
@@ -76,7 +76,7 @@ my_make_check ()
   # Don't be too strict w.r.t. possible normalization of "TODO: foo" into
   # "TODO : foo" (as is done by, e.g., the 'TAP::Parser' perl module).
   LC_ALL=C grep '^[A-Z][A-Z]*:' stdout \
-    | sed -e 's/# \(TODO\|SKIP\) *:/# \1:/' > got
+    | sed -e 's/# TODO *:/# TODO:/' -e 's/# SKIP *:/# SKIP:/' > got
   cat exp
   cat got
   diff exp got