From cfa30992be7c98184d68c3afbb489d47dddcf0fa Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 23 Dec 2012 14:16:02 +0200 Subject: Bug fixes from John Haque. --- test/ChangeLog | 6 ++++++ test/Makefile.am | 6 ++++-- test/Makefile.in | 11 +++++++++-- test/Maketests | 5 +++++ test/paramuninitglobal.awk | 2 ++ test/paramuninitglobal.ok | 0 6 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 test/paramuninitglobal.awk create mode 100644 test/paramuninitglobal.ok (limited to 'test') diff --git a/test/ChangeLog b/test/ChangeLog index 5dbc11a4..9f8327d8 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,9 @@ +2012-12-23 Arnold D. Robbins + + * Makefile.am (paramuninitglobal): New test. + * paramuninitglobal.awk, paramuninitglobal.ok: New files. + Thanks to John Haque. + 2012-10-13 Arnold D. Robbins * Makefile.am (EXTRA_DIST): Add jarebug.sh. diff --git a/test/Makefile.am b/test/Makefile.am index 0dcedb6f..f6378f6c 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -542,6 +542,8 @@ EXTRA_DIST = \ paramres.ok \ paramtyp.awk \ paramtyp.ok \ + paramuninitglobal.awk \ + paramuninitglobal.ok \ parse1.awk \ parse1.in \ parse1.ok \ @@ -823,8 +825,8 @@ BASIC_TESTS = \ nlinstr nlstrina noeffect nofile nofmtch noloop1 noloop2 nonl \ noparms nors nulrsend numindex numsubstr \ octsub ofmt ofmta ofmtbig ofmtfidl ofmts ofs1 onlynl opasnidx opasnslf \ - paramdup paramres paramtyp parse1 parsefld parseme pcntplus \ - posix2008sub prdupval prec printf0 printf1 prmarscl prmreuse \ + paramdup paramres paramtyp paramuninitglobal parse1 parsefld parseme \ + pcntplus posix2008sub prdupval prec printf0 printf1 prmarscl prmreuse \ prt1eval prtoeval \ rand range1 rebt8b1 redfilnm regeq regexprange regrange \ reindops reparse \ diff --git a/test/Makefile.in b/test/Makefile.in index d9fcb4c9..38a5d001 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -746,6 +746,8 @@ EXTRA_DIST = \ paramres.ok \ paramtyp.awk \ paramtyp.ok \ + paramuninitglobal.awk \ + paramuninitglobal.ok \ parse1.awk \ parse1.in \ parse1.ok \ @@ -1027,8 +1029,8 @@ BASIC_TESTS = \ nlinstr nlstrina noeffect nofile nofmtch noloop1 noloop2 nonl \ noparms nors nulrsend numindex numsubstr \ octsub ofmt ofmta ofmtbig ofmtfidl ofmts ofs1 onlynl opasnidx opasnslf \ - paramdup paramres paramtyp parse1 parsefld parseme pcntplus \ - posix2008sub prdupval prec printf0 printf1 prmarscl prmreuse \ + paramdup paramres paramtyp paramuninitglobal parse1 parsefld parseme \ + pcntplus posix2008sub prdupval prec printf0 printf1 prmarscl prmreuse \ prt1eval prtoeval \ rand range1 rebt8b1 redfilnm regeq regexprange regrange \ reindops reparse \ @@ -2451,6 +2453,11 @@ paramtyp: @AWKPATH=$(srcdir) $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ +paramuninitglobal: + @echo paramuninitglobal + @AWKPATH=$(srcdir) $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ + @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ + parse1: @echo parse1 @AWKPATH=$(srcdir) $(AWK) -f $@.awk < $(srcdir)/$@.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ diff --git a/test/Maketests b/test/Maketests index df52108d..eda46452 100644 --- a/test/Maketests +++ b/test/Maketests @@ -595,6 +595,11 @@ paramtyp: @AWKPATH=$(srcdir) $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ +paramuninitglobal: + @echo paramuninitglobal + @AWKPATH=$(srcdir) $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ + @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ + parse1: @echo parse1 @AWKPATH=$(srcdir) $(AWK) -f $@.awk < $(srcdir)/$@.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ diff --git a/test/paramuninitglobal.awk b/test/paramuninitglobal.awk new file mode 100644 index 00000000..b59bb248 --- /dev/null +++ b/test/paramuninitglobal.awk @@ -0,0 +1,2 @@ +function f(x) { a=10; print x; print a} +BEGIN { f(a) } diff --git a/test/paramuninitglobal.ok b/test/paramuninitglobal.ok new file mode 100644 index 00000000..e69de29b -- cgit v1.2.3 From 3af9d688bb752a8865329d0a50a27ab959235f6b Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 23 Dec 2012 14:36:10 +0200 Subject: Make the 4.0.2 tarballs. --- test/ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/ChangeLog b/test/ChangeLog index 9f8327d8..821b75d9 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,7 @@ +2012-12-23 Arnold D. Robbins + + * 4.0.2: Release tar ball made. + 2012-12-23 Arnold D. Robbins * Makefile.am (paramuninitglobal): New test. -- cgit v1.2.3 From 01d2f6e3cb4cfdfeaa98f6ec589f65825bd6bbdb Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 23 Dec 2012 14:56:27 +0200 Subject: Add correct contents for test/paramuninitglobal.ok. --- test/paramuninitglobal.ok | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/paramuninitglobal.ok b/test/paramuninitglobal.ok index e69de29b..069c2ae6 100644 --- a/test/paramuninitglobal.ok +++ b/test/paramuninitglobal.ok @@ -0,0 +1,2 @@ + +10 -- cgit v1.2.3