From 9b304d53b807e4baaf128a6f15ec176fca4dba6f Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 20 Jun 2011 20:39:13 +0300 Subject: Add fix for crash from grep, add test case. --- test/ChangeLog | 5 +++++ test/Makefile.am | 8 +++++--- test/Makefile.in | 13 ++++++++++--- test/Maketests | 5 +++++ test/dfastress.awk | 1 + test/dfastress.ok | 1 + 6 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 test/dfastress.awk create mode 100644 test/dfastress.ok (limited to 'test') diff --git a/test/ChangeLog b/test/ChangeLog index 96962f3c..3d5b4de4 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,8 @@ +Mon Jun 20 20:35:04 2011 Arnold D. Robbins + + * dfastress.awk, dfastress.ok: New files. + * Makefile.am (dfastress): New test. + Sun Jun 5 21:45:27 2011 Arnold D. Robbins * fpat1.ok, fpat1.in: Updated to test things better. diff --git a/test/Makefile.am b/test/Makefile.am index e3dbce04..9e66a8f1 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -167,6 +167,8 @@ EXTRA_DIST = \ devfd1.awk \ devfd1.ok \ devfd2.ok \ + dfastress.awk \ + dfastress.ok \ double1.awk \ double1.ok \ double2.awk \ @@ -760,9 +762,9 @@ BASIC_TESTS = \ aryprm8 arysubnm asgext awkpath back89 backgsub childin clobber \ closebad clsflnam compare compare2 concat1 concat2 concat3 \ concat4 convfmt datanonl defref delargv delarpm2 delarprm delfunc \ - dynlj eofsplit exitval1 exitval2 fcall_exit fcall_exit2 fldchg \ - fldchgnf fnamedat fnarray fnarray2 fnaryscl fnasgnm fnmisc fordel \ - forref forsimp fsbs fsrs fsspcoln fstabplus funsemnl funsmnam \ + dfastress dynlj eofsplit exitval1 exitval2 fcall_exit fcall_exit2 \ + fldchg fldchgnf fnamedat fnarray fnarray2 fnaryscl fnasgnm fnmisc \ + fordel forref forsimp fsbs fsrs fsspcoln fstabplus funsemnl funsmnam \ funstack getline getline2 getline3 getlnbuf getnr2tb getnr2tm \ gsubasgn gsubtest gsubtst2 gsubtst3 gsubtst4 gsubtst5 gsubtst6 \ hex hsprint inputred intest intprec iobug1 leaddig leadnl litoct \ diff --git a/test/Makefile.in b/test/Makefile.in index 3de264e3..3399016b 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -352,6 +352,8 @@ EXTRA_DIST = \ devfd1.awk \ devfd1.ok \ devfd2.ok \ + dfastress.awk \ + dfastress.ok \ double1.awk \ double1.ok \ double2.awk \ @@ -945,9 +947,9 @@ BASIC_TESTS = \ aryprm8 arysubnm asgext awkpath back89 backgsub childin clobber \ closebad clsflnam compare compare2 concat1 concat2 concat3 \ concat4 convfmt datanonl defref delargv delarpm2 delarprm delfunc \ - dynlj eofsplit exitval1 exitval2 fcall_exit fcall_exit2 fldchg \ - fldchgnf fnamedat fnarray fnarray2 fnaryscl fnasgnm fnmisc fordel \ - forref forsimp fsbs fsrs fsspcoln fstabplus funsemnl funsmnam \ + dfastress dynlj eofsplit exitval1 exitval2 fcall_exit fcall_exit2 \ + fldchg fldchgnf fnamedat fnarray fnarray2 fnaryscl fnasgnm fnmisc \ + fordel forref forsimp fsbs fsrs fsspcoln fstabplus funsemnl funsmnam \ funstack getline getline2 getline3 getlnbuf getnr2tb getnr2tm \ gsubasgn gsubtest gsubtst2 gsubtst3 gsubtst4 gsubtst5 gsubtst6 \ hex hsprint inputred intest intprec iobug1 leaddig leadnl litoct \ @@ -1914,6 +1916,11 @@ delfunc: @AWKPATH=$(srcdir) $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ +dfastress: + @echo dfastress + @AWKPATH=$(srcdir) $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ + @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ + dynlj: @echo dynlj @AWKPATH=$(srcdir) $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ diff --git a/test/Maketests b/test/Maketests index 243d07b7..9a16eb7c 100644 --- a/test/Maketests +++ b/test/Maketests @@ -190,6 +190,11 @@ delfunc: @AWKPATH=$(srcdir) $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ +dfastress: + @echo dfastress + @AWKPATH=$(srcdir) $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ + @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ + dynlj: @echo dynlj @AWKPATH=$(srcdir) $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ diff --git a/test/dfastress.awk b/test/dfastress.awk new file mode 100644 index 00000000..40dd3ee7 --- /dev/null +++ b/test/dfastress.awk @@ -0,0 +1 @@ +BEGIN { print "a" ~ /(^| )*(a|b)*(c|d)( |$)/ } diff --git a/test/dfastress.ok b/test/dfastress.ok new file mode 100644 index 00000000..573541ac --- /dev/null +++ b/test/dfastress.ok @@ -0,0 +1 @@ +0 -- cgit v1.2.3