diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-06-25 22:44:21 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-06-25 22:44:21 +0300 |
commit | dc578b50b37e6f025971375a3ce52f23830049b2 (patch) | |
tree | 0ccb3df85dda234549b969209b4f67af3e7cc765 | |
parent | 0302c2f241b0a4ab47a0e60213c132c4135fed93 (diff) | |
download | egawk-dc578b50b37e6f025971375a3ce52f23830049b2.tar.gz egawk-dc578b50b37e6f025971375a3ce52f23830049b2.tar.bz2 egawk-dc578b50b37e6f025971375a3ce52f23830049b2.zip |
Make typeof3 and typeof4 tests actually work.
-rw-r--r-- | test/Makefile.am | 2 | ||||
-rw-r--r-- | test/Makefile.in | 12 | ||||
-rw-r--r-- | test/Maketests | 10 | ||||
-rw-r--r-- | test/typeof3.ok | 3 |
4 files changed, 24 insertions, 3 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 0c32fa6c..842f9bdb 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1105,7 +1105,7 @@ GAWK_EXT_TESTS = \ splitarg4 strftime \ strtonum switch2 symtab1 symtab2 symtab3 symtab4 symtab5 symtab6 \ symtab7 symtab8 symtab9 \ - typedregex1 typeof1 typeof2 + typedregex1 typeof1 typeof2 typeof3 typeof4 timeout EXTRA_TESTS = inftest regtest diff --git a/test/Makefile.in b/test/Makefile.in index 81562779..efb0badc 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -1361,7 +1361,7 @@ GAWK_EXT_TESTS = \ splitarg4 strftime \ strtonum switch2 symtab1 symtab2 symtab3 symtab4 symtab5 symtab6 \ symtab7 symtab8 symtab9 \ - typedregex1 typeof1 typeof2 + typedregex1 typeof1 typeof2 typeof3 typeof4 EXTRA_TESTS = inftest regtest INET_TESTS = inetdayu inetdayt inetechu inetecht @@ -3916,6 +3916,16 @@ typeof2: @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ +typeof3: + @echo $@ + @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ + @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ + +typeof4: + @echo $@ + @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ + @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ + double1: @echo $@ @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ diff --git a/test/Maketests b/test/Maketests index baf973ec..e4cea0de 100644 --- a/test/Maketests +++ b/test/Maketests @@ -1347,6 +1347,16 @@ typeof2: @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ +typeof3: + @echo $@ + @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ + @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ + +typeof4: + @echo $@ + @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ + @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ + double1: @echo $@ @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ diff --git a/test/typeof3.ok b/test/typeof3.ok index c8f458a1..8186ad9e 100644 --- a/test/typeof3.ok +++ b/test/typeof3.ok @@ -5,4 +5,5 @@ scalar_n 4 scalar_n untyped -gawk: test/typeof3.awk:18: fatal: attempt to use scalar `a["1"]' as an array +gawk: typeof3.awk:18: fatal: attempt to use scalar `a["1"]' as an array +EXIT CODE: 2 |