gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4131-g2ab1c82


From: Arnold Robbins
Subject: [SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4131-g2ab1c82
Date: Thu, 1 Oct 2020 01:25:46 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, gawk-5.1-stable has been updated
       via  2ab1c82b4097cff8763d1ed63be6478edf55eb54 (commit)
      from  2a9ffa8555af0543638cf8466d5f29d7ff1d275e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=2ab1c82b4097cff8763d1ed63be6478edf55eb54

commit 2ab1c82b4097cff8763d1ed63be6478edf55eb54
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Thu Oct 1 08:25:21 2020 +0300

    Improve iolint test.

diff --git a/pc/ChangeLog b/pc/ChangeLog
index 428ba03..2c38352 100644
--- a/pc/ChangeLog
+++ b/pc/ChangeLog
@@ -1,3 +1,7 @@
+2020-10-01         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * Makefile.tst: Rebuilt.
+
 2020-09-21         Arnold D. Robbins     <arnold@skeeve.com>
 
        * Makefile.tst: Rebuilt.
diff --git a/pc/Makefile.tst b/pc/Makefile.tst
index a09b8d1..6db70e1 100644
--- a/pc/Makefile.tst
+++ b/pc/Makefile.tst
@@ -1233,9 +1233,10 @@ typedregex4:
 iolint:
        @echo $@
        @echo hello > 'echo hello'
+       @touch 'exec cat' ; chmod 755 'exec cat'
        @$(AWK) -f "$(srcdir)"/$@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
-       @-$(RM) -f cat 'echo hello' f1 f2 md5sum
+       @-$(RM) -f cat 'echo hello' 'exec cat' f1 f2 md5sum
 Gt-dummy:
 # file Maketests, generated from Makefile.am by the Gentests program
 addcomma:
diff --git a/test/ChangeLog b/test/ChangeLog
index eb3899c..8563e07 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,9 @@
+2020-10-01         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * iolint.awk, iolint.ok: Adjust output to cat for exit status
+       portability.  Thanks to Andrew Schorr for finding the issue.
+       * Makefile.am (iolint): Adjust scaffolding around the test.
+
 2020-09-21         Arnold D. Robbins     <arnold@skeeve.com>
 
        * Makefile.am (EXTRA_DIST): New test iolint. Sort the list of
diff --git a/test/Makefile.am b/test/Makefile.am
index ff2ba12..662fdfb 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -2453,9 +2453,10 @@ typedregex4:
 iolint:
        @echo $@
        @echo hello > 'echo hello'
+       @touch 'exec cat' ; chmod 755 'exec cat'
        @$(AWK) -f "$(srcdir)"/$@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
-       @-$(RM) -f cat 'echo hello' f1 f2 md5sum
+       @-$(RM) -f cat 'echo hello' 'exec cat' f1 f2 md5sum
 
 # Targets generated for other tests:
 include Maketests
diff --git a/test/Makefile.in b/test/Makefile.in
index a8848e8..9a48a00 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -2900,9 +2900,10 @@ typedregex4:
 iolint:
        @echo $@
        @echo hello > 'echo hello'
+       @touch 'exec cat' ; chmod 755 'exec cat'
        @$(AWK) -f "$(srcdir)"/$@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
-       @-$(RM) -f cat 'echo hello' f1 f2 md5sum
+       @-$(RM) -f cat 'echo hello' 'exec cat' f1 f2 md5sum
 Gt-dummy:
 # file Maketests, generated from Makefile.am by the Gentests program
 addcomma:
diff --git a/test/iolint.awk b/test/iolint.awk
index e740815..b6c8eeb 100644
--- a/test/iolint.awk
+++ b/test/iolint.awk
@@ -54,12 +54,13 @@ BEGIN {
        # `%.*s' used for output file and output pipe
        # `%.*s' used for output file and two-way pipe
        # `%.*s' used for output pipe and two-way pipe
-       print "hello" > "cat"
-       print "hello" | "cat"
-       print "hello" |& "cat"
-       print close("cat")
-       print close("cat")
-       print close("cat")
+       exec_cat = "exec cat"
+       print "/bin/cat \"$@\"" > exec_cat
+       print "hello" | exec_cat
+       print "hello" |& exec_cat
+       print close(exec_cat)
+       print close(exec_cat)
+       print close(exec_cat)
        fflush()
 
        # `%.*s' used for input pipe and output pipe
diff --git a/test/iolint.ok b/test/iolint.ok
index 1e325aa..873b024 100644
--- a/test/iolint.ok
+++ b/test/iolint.ok
@@ -23,15 +23,15 @@ b1946ac92492d2347c6235b4d2611184  -
 gawk: ./iolint.awk:49: warning: `echo hello' used for input pipe and output 
file
 0
 0
-gawk: ./iolint.awk:58: warning: `cat' used for output file and output pipe
-gawk: ./iolint.awk:59: warning: `cat' used for output pipe and two-way pipe
-gawk: ./iolint.awk:59: warning: `cat' used for output file and two-way pipe
+gawk: ./iolint.awk:59: warning: `exec cat' used for output file and output pipe
+gawk: ./iolint.awk:60: warning: `exec cat' used for output pipe and two-way 
pipe
+gawk: ./iolint.awk:60: warning: `exec cat' used for output file and two-way 
pipe
 hello
-gawk: ./iolint.awk:60: warning: failure status (141) on two-way pipe close of 
`cat': Success
-141
+gawk: ./iolint.awk:61: warning: failure status (269) on two-way pipe close of 
`exec cat': Success
+269
 0
 0
-gawk: ./iolint.awk:67: warning: `echo hello' used for input pipe and output 
pipe
+gawk: ./iolint.awk:68: warning: `echo hello' used for input pipe and output 
pipe
 hello
 0
 0

-----------------------------------------------------------------------

Summary of changes:
 pc/ChangeLog     |  4 ++++
 pc/Makefile.tst  |  3 ++-
 test/ChangeLog   |  6 ++++++
 test/Makefile.am |  3 ++-
 test/Makefile.in |  3 ++-
 test/iolint.awk  | 13 +++++++------
 test/iolint.ok   | 12 ++++++------
 7 files changed, 29 insertions(+), 15 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]