aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-06-08 22:59:28 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-06-08 22:59:28 +0300
commitbb331e22c3207863ebd923bd4c8a36c256485c6b (patch)
tree7039148192ed814eac679ec2ed0e8894b3e18fe8 /test
parent4f758771937fcbd59b1fd2db017c4995513c3988 (diff)
parentb504b2707e0780d5f0b347aef9bead0e516813a2 (diff)
downloadegawk-bb331e22c3207863ebd923bd4c8a36c256485c6b.tar.gz
egawk-bb331e22c3207863ebd923bd4c8a36c256485c6b.tar.bz2
egawk-bb331e22c3207863ebd923bd4c8a36c256485c6b.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog6
-rw-r--r--test/Makefile.am10
-rw-r--r--test/Makefile.in10
-rw-r--r--test/symtab10.awk1
-rw-r--r--test/symtab10.in4
-rw-r--r--test/symtab10.ok11
6 files changed, 40 insertions, 2 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index a0f8f47a..49ad457e 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,9 @@
+2016-06-08 Arnold D. Robbins <arnold@skeeve.com>
+
+ * symtab10.awk, symtab10.in, symtab10.ok: New files.
+ * Makefile.am (symtab10): New test.
+ Thanks to Hermann Peifer for the report.
+
2016-06-01 Arnold D. Robbins <arnold@skeeve.com>
* Makefile.am (hex2): New test.
diff --git a/test/Makefile.am b/test/Makefile.am
index 6e25290d..9d95a609 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1020,6 +1020,9 @@ EXTRA_DIST = \
symtab8.ok \
symtab9.awk \
symtab9.ok \
+ symtab10.awk \
+ symtab10.in \
+ symtab10.ok \
synerr1.awk \
synerr1.ok \
synerr2.awk \
@@ -1170,7 +1173,7 @@ GAWK_EXT_TESTS = \
sortfor sortu split_after_fpat \
splitarg4 strftime \
strtonum switch2 symtab1 symtab2 symtab3 symtab4 symtab5 symtab6 \
- symtab7 symtab8 symtab9 \
+ symtab7 symtab8 symtab9 symtab10 \
typedregex1 typedregex2 typedregex3 typeof1 typeof2 typeof3 typeof4 \
timeout \
watchpoint1
@@ -2253,6 +2256,11 @@ rscompat:
@AWKPATH="$(srcdir)" $(AWK) --traditional -f $@.awk "$(srcdir)/$@.in" >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+symtab10:
+ @echo $@
+ @AWKPATH="$(srcdir)" $(AWK) -D -f $@.awk < "$(srcdir)/$@.in" >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+
# Targets generated for other tests:
include Maketests
diff --git a/test/Makefile.in b/test/Makefile.in
index e2c3e33e..67fc7b45 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1277,6 +1277,9 @@ EXTRA_DIST = \
symtab8.ok \
symtab9.awk \
symtab9.ok \
+ symtab10.awk \
+ symtab10.in \
+ symtab10.ok \
synerr1.awk \
synerr1.ok \
synerr2.awk \
@@ -1426,7 +1429,7 @@ GAWK_EXT_TESTS = \
sortfor sortu split_after_fpat \
splitarg4 strftime \
strtonum switch2 symtab1 symtab2 symtab3 symtab4 symtab5 symtab6 \
- symtab7 symtab8 symtab9 \
+ symtab7 symtab8 symtab9 symtab10 \
typedregex1 typedregex2 typedregex3 typeof1 typeof2 typeof3 typeof4 \
timeout \
watchpoint1
@@ -2690,6 +2693,11 @@ rscompat:
@echo $@
@AWKPATH="$(srcdir)" $(AWK) --traditional -f $@.awk "$(srcdir)/$@.in" >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+
+symtab10:
+ @echo $@
+ @AWKPATH="$(srcdir)" $(AWK) -D -f $@.awk < "$(srcdir)/$@.in" >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
Gt-dummy:
# file Maketests, generated from Makefile.am by the Gentests program
addcomma:
diff --git a/test/symtab10.awk b/test/symtab10.awk
new file mode 100644
index 00000000..6fbd3994
--- /dev/null
+++ b/test/symtab10.awk
@@ -0,0 +1 @@
+BEGIN { SYMTAB["x"] ; y=1 ; y++ }
diff --git a/test/symtab10.in b/test/symtab10.in
new file mode 100644
index 00000000..d9afcd66
--- /dev/null
+++ b/test/symtab10.in
@@ -0,0 +1,4 @@
+watch y
+run
+watch x
+continue
diff --git a/test/symtab10.ok b/test/symtab10.ok
new file mode 100644
index 00000000..b0cabd7c
--- /dev/null
+++ b/test/symtab10.ok
@@ -0,0 +1,11 @@
+Watchpoint 1: y
+Starting program:
+Stopping in BEGIN ...
+Watchpoint 1: y
+ Old value: untyped variable
+ New value: 1
+main() at `symtab10.awk':1
+1 BEGIN { SYMTAB["x"] ; y=1 ; y++ }
+no symbol `x' in current context
+Program exited normally with exit value: 0
+EXIT CODE: 2