diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2020-09-21 17:02:23 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2020-09-21 17:02:23 +0300 |
commit | 55eee619ac637e29c0fe847cc89cda78cc18c28d (patch) | |
tree | 3910fc6b193f91f72c280002033d128fd30e9e85 /pc | |
parent | 166848a1579181875e6ac696fd004037441b6b75 (diff) | |
download | egawk-55eee619ac637e29c0fe847cc89cda78cc18c28d.tar.gz egawk-55eee619ac637e29c0fe847cc89cda78cc18c28d.tar.bz2 egawk-55eee619ac637e29c0fe847cc89cda78cc18c28d.zip |
Add lint checks for same redirection used multiple ways.
Diffstat (limited to 'pc')
-rw-r--r-- | pc/ChangeLog | 4 | ||||
-rw-r--r-- | pc/Makefile.tst | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/pc/ChangeLog b/pc/ChangeLog index d58d2958..428ba03f 100644 --- a/pc/ChangeLog +++ b/pc/ChangeLog @@ -1,3 +1,7 @@ +2020-09-21 Arnold D. Robbins <arnold@skeeve.com> + + * Makefile.tst: Rebuilt. + 2020-08-17 Arnold D. Robbins <arnold@skeeve.com> * Makefile.tst: Rebuilt. diff --git a/pc/Makefile.tst b/pc/Makefile.tst index 98841191..a09b8d1e 100644 --- a/pc/Makefile.tst +++ b/pc/Makefile.tst @@ -202,7 +202,7 @@ GAWK_EXT_TESTS = \ genpot gensub gensub2 gensub3 getlndir gnuops2 gnuops3 gnureops gsubind \ icasefs icasers id igncdym igncfs ignrcas2 ignrcas4 ignrcase incdupe \ incdupe2 incdupe3 incdupe4 incdupe5 incdupe6 incdupe7 include include2 \ - indirectbuiltin indirectcall indirectcall2 intarray isarrayunset \ + indirectbuiltin indirectcall indirectcall2 intarray iolint isarrayunset \ lint lintexp lintindex lintint lintlength lintplus lintold lintset lintwarn \ manyfiles match1 match2 match3 mbstr1 mbstr2 mixed1 mktime muldimposix \ nastyparm negtime next nondec nondec2 nonfatal1 nonfatal2 nonfatal3 \ @@ -1229,6 +1229,13 @@ typedregex4: @echo $@ @$(AWK) -v x=@$(SLASH)foo/ -f "$(srcdir)"/$@.awk y=@$(SLASH)bar/ /dev/null >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ + +iolint: + @echo $@ + @echo hello > 'echo hello' + @$(AWK) -f "$(srcdir)"/$@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ + @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ + @-$(RM) -f cat 'echo hello' f1 f2 md5sum Gt-dummy: # file Maketests, generated from Makefile.am by the Gentests program addcomma: |