aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-08-26 21:42:53 +0300
committerArnold D. Robbins <arnold@skeeve.com>2012-08-26 21:42:53 +0300
commit439d946a0e936267f7f478b22d0754e882bf7cf0 (patch)
treee883b0c99d33efe1ac86a65599fb87233ce5a057
parent5cc7f618cb125b389538db5a75e1f0de33139f9b (diff)
downloadegawk-439d946a0e936267f7f478b22d0754e882bf7cf0.tar.gz
egawk-439d946a0e936267f7f478b22d0754e882bf7cf0.tar.bz2
egawk-439d946a0e936267f7f478b22d0754e882bf7cf0.zip
Fix charasbytes test for Mac OS X (10.5).
-rw-r--r--test/ChangeLog6
-rw-r--r--test/Makefile.am2
-rw-r--r--test/Makefile.in2
-rw-r--r--test/charasbytes.ok4
4 files changed, 10 insertions, 4 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 75eb5ec9..f88b7963 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,9 @@
+2012-08-26 Arnold D. Robbins <arnold@skeeve.com>
+
+ * Makefile.am (charasbytes): Revise test to canonicalize
+ whitespace. (For Mac OS X 10.5, at least.)
+ * charasbytes.ok: Updated.
+
2012-08-12 Arnold D. Robbins <arnold@skeeve.com>
* Makefile.am (regexprange): New test.
diff --git a/test/Makefile.am b/test/Makefile.am
index 592cf144..bb61bcaf 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1474,7 +1474,7 @@ charasbytes:
@echo $@
@[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=en_US.UTF-8; \
AWKPATH=$(srcdir) $(AWK) -b -f $@.awk $(srcdir)/$@.in | \
- od -c -t x1 >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
+ od -c -t x1 | sed -e 's/ */ /g' -e 's/ *$$//' >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@
# Targets generated for other tests:
diff --git a/test/Makefile.in b/test/Makefile.in
index 5c268a9a..91652f08 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1851,7 +1851,7 @@ charasbytes:
@echo $@
@[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=en_US.UTF-8; \
AWKPATH=$(srcdir) $(AWK) -b -f $@.awk $(srcdir)/$@.in | \
- od -c -t x1 >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
+ od -c -t x1 | sed -e 's/ */ /g' -e 's/ *$$//' >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@
Gt-dummy:
# file Maketests, generated from Makefile.am by the Gentests program
diff --git a/test/charasbytes.ok b/test/charasbytes.ok
index a1702e64..f60f2ab4 100644
--- a/test/charasbytes.ok
+++ b/test/charasbytes.ok
@@ -1,3 +1,3 @@
-0000000 Z Z Z \n
- 5a 5a 5a 0a
+0000000 Z Z Z \n
+ 5a 5a 5a 0a
0000004