diff --git a/test/Makefile.am b/test/Makefile.am index 7976fcd..1ef33b1 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -2424,6 +2424,11 @@ sourcesplit: @AWKPATH="$(srcdir)" $(AWK) --source='BEGIN { a = 5;' --source='print a }' >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@ +nonfatal1: + @echo $@ + @AWKPATH="$(srcdir)" $(AWK) -f address@hidden 2>&1 | $(AWK) '{print gensub(/invalid:.*$$/, "invalid", 1, $$0)}' >_$@ || echo EXIT CODE: $$? >>_$@ + @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@ + # Targets generated for other tests: include Maketests diff --git a/test/nonfatal1.ok b/test/nonfatal1.ok index 4c9ab57..51583f2 100644 --- a/test/nonfatal1.ok +++ b/test/nonfatal1.ok @@ -1,2 +1,2 @@ -gawk: nonfatal1.awk:4: warning: remote host and port information (local:host, 25) invalid: Name or service not known +gawk: nonfatal1.awk:4: warning: remote host and port information (local:host, 25) invalid 1