aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-01-07 22:08:40 +0200
committerArnold D. Robbins <arnold@skeeve.com>2021-01-07 22:08:40 +0200
commite33ab738045b82db7b449e92c8633ef1d44bb8a7 (patch)
tree7942c2f074014a3125024d1616bfda95566cd0e6 /test
parent3c8d0097afa139003c55612eaa89340b70f16ee7 (diff)
downloadegawk-e33ab738045b82db7b449e92c8633ef1d44bb8a7.tar.gz
egawk-e33ab738045b82db7b449e92c8633ef1d44bb8a7.tar.bz2
egawk-e33ab738045b82db7b449e92c8633ef1d44bb8a7.zip
Improve handling of unsupported format modifiers.
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog5
-rw-r--r--test/Makefile.am7
-rw-r--r--test/Makefile.in12
-rw-r--r--test/Maketests5
4 files changed, 25 insertions, 4 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 7d373146..f465ab09 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
+2021-01-07 Arnold D. Robbins <arnold@skeeve.com>
+
+ * Makefile.am (EXTRA_DIST): modifiers, new test.
+ * modifiers.sh, modifiers.ok: New files.
+
2020-12-26 Arnold D. Robbins <arnold@skeeve.com>
* Makefile.am (EXTRA_DIST): fpat9, new test.
diff --git a/test/Makefile.am b/test/Makefile.am
index 2b1f1416..8278a547 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -661,6 +661,8 @@ EXTRA_DIST = \
manglprm.ok \
manyfiles.awk \
manyfiles.ok \
+ modifiers.sh \
+ modifiers.ok \
muldimposix.awk \
muldimposix.ok \
match1.awk \
@@ -1436,7 +1438,8 @@ GAWK_EXT_TESTS = \
indirectbuiltin indirectcall indirectcall2 inf-nan-torture \
intarray iolint isarrayunset \
lint lintexp lintindex lintint lintlength lintplus lintold lintset lintwarn \
- manyfiles match1 match2 match3 mbstr1 mbstr2 mixed1 mktime muldimposix \
+ manyfiles match1 match2 match3 mbstr1 mbstr2 mixed1 mktime \
+ modifiers muldimposix \
nastyparm negtime next nondec nondec2 nonfatal1 nonfatal2 nonfatal3 \
nsawk1a nsawk1b nsawk1c nsawk2a nsawk2b \
nsbad nsbad_cmd nsforloop nsfuncrecurse nsindirect1 nsindirect2 nsprof1 nsprof2 \
@@ -1518,7 +1521,7 @@ NEED_SANDBOX = sandbox1
NEED_TRADITIONAL = litoct tradanch rscompat
# Lists of tests that run a shell script
-RUN_SHELL = exit fflush localenl next randtest rtlen rtlen01
+RUN_SHELL = exit fflush localenl modifiers next randtest rtlen rtlen01
# List of the tests which fail with EXIT CODE 1
FAIL_CODE1 = \
diff --git a/test/Makefile.in b/test/Makefile.in
index b96b7d0d..8c2a8fd4 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -924,6 +924,8 @@ EXTRA_DIST = \
manglprm.ok \
manyfiles.awk \
manyfiles.ok \
+ modifiers.sh \
+ modifiers.ok \
muldimposix.awk \
muldimposix.ok \
match1.awk \
@@ -1699,7 +1701,8 @@ GAWK_EXT_TESTS = \
indirectbuiltin indirectcall indirectcall2 inf-nan-torture \
intarray iolint isarrayunset \
lint lintexp lintindex lintint lintlength lintplus lintold lintset lintwarn \
- manyfiles match1 match2 match3 mbstr1 mbstr2 mixed1 mktime muldimposix \
+ manyfiles match1 match2 match3 mbstr1 mbstr2 mixed1 mktime \
+ modifiers muldimposix \
nastyparm negtime next nondec nondec2 nonfatal1 nonfatal2 nonfatal3 \
nsawk1a nsawk1b nsawk1c nsawk2a nsawk2b \
nsbad nsbad_cmd nsforloop nsfuncrecurse nsindirect1 nsindirect2 nsprof1 nsprof2 \
@@ -1781,7 +1784,7 @@ NEED_SANDBOX = sandbox1
NEED_TRADITIONAL = litoct tradanch rscompat
# Lists of tests that run a shell script
-RUN_SHELL = exit fflush localenl next randtest rtlen rtlen01
+RUN_SHELL = exit fflush localenl modifiers next randtest rtlen rtlen01
# List of the tests which fail with EXIT CODE 1
FAIL_CODE1 = \
@@ -4637,6 +4640,11 @@ mktime:
@AWKPATH="$(srcdir)" $(AWK) -f $@.awk < "$(srcdir)"/$@.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+modifiers:
+ @echo $@
+ @-$(LOCALES) AWK="$(AWKPROG)" "$(srcdir)"/$@.sh > _$@ 2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+
muldimposix:
@echo $@
@AWKPATH="$(srcdir)" $(AWK) -f $@.awk --posix >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
diff --git a/test/Maketests b/test/Maketests
index 363a2755..4e6a705f 100644
--- a/test/Maketests
+++ b/test/Maketests
@@ -1719,6 +1719,11 @@ mktime:
@AWKPATH="$(srcdir)" $(AWK) -f $@.awk < "$(srcdir)"/$@.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+modifiers:
+ @echo $@
+ @-$(LOCALES) AWK="$(AWKPROG)" "$(srcdir)"/$@.sh > _$@ 2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+
muldimposix:
@echo $@
@AWKPATH="$(srcdir)" $(AWK) -f $@.awk --posix >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@