aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-01-14 20:53:39 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-01-14 20:53:39 +0200
commit51fd7a034cb931b730d98e513a37240d1696bcc4 (patch)
tree9352ed414dbed1aa45fbab3c96e5688f5c5b54c0 /test
parentf6d1d7cd12cfdf953ecfe387e8d120cc48ae9a57 (diff)
parentfec67185e69458b550c5f8c8591176d715134e33 (diff)
downloadegawk-51fd7a034cb931b730d98e513a37240d1696bcc4.tar.gz
egawk-51fd7a034cb931b730d98e513a37240d1696bcc4.tar.bz2
egawk-51fd7a034cb931b730d98e513a37240d1696bcc4.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog11
-rw-r--r--test/Makefile.am4
-rw-r--r--test/Makefile.in9
-rw-r--r--test/Maketests5
-rw-r--r--test/aryprm9.awk16
-rw-r--r--test/aryprm9.ok0
6 files changed, 42 insertions, 3 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index d18c6173..b05c2896 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,12 @@
+2016-01-14 Arnold D. Robbins <arnold@skeeve.com>
+
+ * Makefile.am (aryprm9): New test.
+ * aryprm9.awk, aryprm9.ok: New files.
+
+ Unrelated:
+
+ * ChangeLog: Remove spurious whitespace.
+
2015-12-27 Arnold D. Robbins <arnold@skeeve.com>
These came in from gawk-4.1-stable:
@@ -131,7 +140,7 @@
2015-05-21 Arnold D. Robbins <arnold@skeeve.com>
- * fts.awk: Really remove atime from the output.
+ * fts.awk: Really remove atime from the output.
This avoids spurious failures on heavily loaded systems.
* Makefile.am: Add list of needed locales to "inadequate locale
diff --git a/test/Makefile.am b/test/Makefile.am
index b9eb6739..02748c18 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -93,6 +93,8 @@ EXTRA_DIST = \
aryprm7.ok \
aryprm8.awk \
aryprm8.ok \
+ aryprm9.awk \
+ aryprm9.ok \
arysubnm.awk \
arysubnm.ok \
asgext.awk \
@@ -1072,7 +1074,7 @@ BASIC_TESTS = \
addcomma anchgsub argarray arrayparm arrayprm2 arrayprm3 \
arrayref arrymem1 arryref2 arryref3 arryref4 arryref5 arynasty \
arynocls aryprm1 aryprm2 aryprm3 aryprm4 aryprm5 aryprm6 aryprm7 \
- aryprm8 arysubnm asgext awkpath \
+ aryprm8 aryprm9 arysubnm asgext awkpath \
back89 backgsub badassign1 badbuild \
callparam childin clobber closebad clsflnam compare compare2 concat1 concat2 \
concat3 concat4 convfmt \
diff --git a/test/Makefile.in b/test/Makefile.in
index df6c576f..f76b4d59 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -350,6 +350,8 @@ EXTRA_DIST = \
aryprm7.ok \
aryprm8.awk \
aryprm8.ok \
+ aryprm9.awk \
+ aryprm9.ok \
arysubnm.awk \
arysubnm.ok \
asgext.awk \
@@ -1328,7 +1330,7 @@ BASIC_TESTS = \
addcomma anchgsub argarray arrayparm arrayprm2 arrayprm3 \
arrayref arrymem1 arryref2 arryref3 arryref4 arryref5 arynasty \
arynocls aryprm1 aryprm2 aryprm3 aryprm4 aryprm5 aryprm6 aryprm7 \
- aryprm8 arysubnm asgext awkpath \
+ aryprm8 aryprm9 arysubnm asgext awkpath \
back89 backgsub badassign1 badbuild \
callparam childin clobber closebad clsflnam compare compare2 concat1 concat2 \
concat3 concat4 convfmt \
@@ -2740,6 +2742,11 @@ aryprm8:
@AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+aryprm9:
+ @echo $@
+ @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+
arysubnm:
@echo $@
@AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
diff --git a/test/Maketests b/test/Maketests
index 689dcdc9..f1ffdf97 100644
--- a/test/Maketests
+++ b/test/Maketests
@@ -100,6 +100,11 @@ aryprm8:
@AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+aryprm9:
+ @echo $@
+ @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+
arysubnm:
@echo $@
@AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
diff --git a/test/aryprm9.awk b/test/aryprm9.awk
new file mode 100644
index 00000000..004e3c34
--- /dev/null
+++ b/test/aryprm9.awk
@@ -0,0 +1,16 @@
+#!/usr/bin/gawk -f
+BEGIN {
+
+ for (i = 0; i < 100; i++)
+ func_exec()
+}
+
+function func_exec(opaque)
+{
+ func_a(1, opaque) #set additional argument, not expected by fname
+}
+
+function func_a(a, b, loc1, loc2)
+{
+ b = 0 #unref Nnull_string
+}
diff --git a/test/aryprm9.ok b/test/aryprm9.ok
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/aryprm9.ok