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-4289-g4f7ec39


From: Arnold Robbins
Subject: [SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4289-g4f7ec39
Date: Mon, 6 Sep 2021 03:41:54 -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  4f7ec39c9d7a02b1ef483a78e7596390c049df53 (commit)
       via  dedc6b3d8512aca225d9b39a13b60dbd5c92d702 (commit)
      from  278cfe82e88d7899cb66bf79141fcc8b0a2727be (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=4f7ec39c9d7a02b1ef483a78e7596390c049df53

commit 4f7ec39c9d7a02b1ef483a78e7596390c049df53
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Mon Sep 6 10:41:37 2021 +0300

    Add the actual test files.

diff --git a/test/typeof6.awk b/test/typeof6.awk
new file mode 100644
index 0000000..a1988c1
--- /dev/null
+++ b/test/typeof6.awk
@@ -0,0 +1,46 @@
+
+BEGIN{
+
+       A[ "any index" ] = 1            # any number
+
+       for ( i in A ) {
+
+               v = A[ i ]
+
+               gensub( /^/, "1", 1, v )
+
+               #gsub( /^dfsdfs/, "1", v )
+
+               #sub( /^/, "1", v )
+
+               if ( typeof( A[ i ] ) == "unknown" )
+
+                       print "ERROR: A[ " i " ] == " A[ i ] "'" }
+
+       v = A[ "any index" ]
+
+       print typeof( v )
+
+ }
+
+
+
+# GNU Awk 5.1.0, API: 3.0 (GNU MPFR 3.1.5, GNU MP 6.1.2)
+# Copyright (C) 1989, 1991-2020 Free Software Foundation.
+#
+# Windows 10x64
+#
+# here is the typeof() error reproducing script
+# it is actual for: gensub(), gsub() and sub() built-ins
+#
+# please pay attention that: v = A[ i ] is doesn't matter
+# you may apply built-ins at A[ i ] directly with the same
+# result
+#
+# with Respect
+#
+# Denis Shirokov                                       (2021.9.5)
+
+
+
+
diff --git a/test/typeof6.ok b/test/typeof6.ok
new file mode 100644
index 0000000..b67e17a
--- /dev/null
+++ b/test/typeof6.ok
@@ -0,0 +1 @@
+number

http://git.sv.gnu.org/cgit/gawk.git/commit/?id=dedc6b3d8512aca225d9b39a13b60dbd5c92d702

commit dedc6b3d8512aca225d9b39a13b60dbd5c92d702
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Mon Sep 6 10:30:43 2021 +0300

    New test.

diff --git a/pc/ChangeLog b/pc/ChangeLog
index 0e0d60e..01bd458 100644
--- a/pc/ChangeLog
+++ b/pc/ChangeLog
@@ -1,3 +1,7 @@
+2021-09-06         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * Makefile.tst: Regenerated.
+
 2021-05-15  Eli Zaretskii  <eliz@gnu.org>
 
        * Makefile (DEFPATH): New variable, like in Makefile.am.
diff --git a/pc/Makefile.tst b/pc/Makefile.tst
index b9572ba..0894a05 100644
--- a/pc/Makefile.tst
+++ b/pc/Makefile.tst
@@ -226,7 +226,7 @@ GAWK_EXT_TESTS = \
        symtab8 symtab9 symtab10 symtab11 \
        timeout typedregex1 typedregex2 typedregex3 typedregex4 \
        typedregex5 typedregex6 \
-       typeof1 typeof2 typeof3 typeof4 typeof5 \
+       typeof1 typeof2 typeof3 typeof4 typeof5 typeof6 \
        watchpoint1
 
 ARRAYDEBUG_TESTS = arrdbg
@@ -3380,6 +3380,11 @@ typeof5:
        @AWKPATH="$(srcdir)" $(AWK) -f $@.awk  < "$(srcdir)"/$@.in >_$@ 2>&1 || 
echo EXIT CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
 
+typeof6:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -f $@.awk  >_$@ 2>&1 || echo EXIT CODE: $$? 
>>_$@
+       @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+
 double1:
        @echo $@ $(ZOS_FAIL)
        @AWKPATH="$(srcdir)" $(AWK) -f $@.awk  >_$@ 2>&1 || echo EXIT CODE: $$? 
>>_$@
diff --git a/test/ChangeLog b/test/ChangeLog
index c3dcd55..e79d338 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
+2021-09-06         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * Makefile.am (EXTRA_DIST): typeof6, new test.
+       * typeof6.awk, typeof6.ok: New files.
+
 2021-08-13         Arnold D. Robbins     <arnold@skeeve.com>
 
        * Makefile.am (EXTRA_DIST): regexsub, new test.
diff --git a/test/Makefile.am b/test/Makefile.am
index 7ee2381..e4a7b64 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1329,6 +1329,8 @@ EXTRA_DIST = \
        typeof5.awk \
        typeof5.in \
        typeof5.ok \
+       typeof6.awk \
+       typeof6.ok \
        uninit2.awk \
        uninit2.ok \
        uninit3.awk \
@@ -1468,7 +1470,7 @@ GAWK_EXT_TESTS = \
        symtab8 symtab9 symtab10 symtab11 \
        timeout typedregex1 typedregex2 typedregex3 typedregex4 \
        typedregex5 typedregex6 \
-       typeof1 typeof2 typeof3 typeof4 typeof5 \
+       typeof1 typeof2 typeof3 typeof4 typeof5 typeof6 \
        watchpoint1
 
 ARRAYDEBUG_TESTS = arrdbg
diff --git a/test/Makefile.in b/test/Makefile.in
index 79ca9a3..7882bae 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1592,6 +1592,8 @@ EXTRA_DIST = \
        typeof5.awk \
        typeof5.in \
        typeof5.ok \
+       typeof6.awk \
+       typeof6.ok \
        uninit2.awk \
        uninit2.ok \
        uninit3.awk \
@@ -1731,7 +1733,7 @@ GAWK_EXT_TESTS = \
        symtab8 symtab9 symtab10 symtab11 \
        timeout typedregex1 typedregex2 typedregex3 typedregex4 \
        typedregex5 typedregex6 \
-       typeof1 typeof2 typeof3 typeof4 typeof5 \
+       typeof1 typeof2 typeof3 typeof4 typeof5 typeof6 \
        watchpoint1
 
 ARRAYDEBUG_TESTS = arrdbg
@@ -5042,6 +5044,11 @@ typeof5:
        @AWKPATH="$(srcdir)" $(AWK) -f $@.awk  < "$(srcdir)"/$@.in >_$@ 2>&1 || 
echo EXIT CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
 
+typeof6:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -f $@.awk  >_$@ 2>&1 || echo EXIT CODE: $$? 
>>_$@
+       @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+
 double1:
        @echo $@ $(ZOS_FAIL)
        @AWKPATH="$(srcdir)" $(AWK) -f $@.awk  >_$@ 2>&1 || echo EXIT CODE: $$? 
>>_$@
diff --git a/test/Maketests b/test/Maketests
index 12cc164..2d7b4d7 100644
--- a/test/Maketests
+++ b/test/Maketests
@@ -2106,6 +2106,11 @@ typeof5:
        @AWKPATH="$(srcdir)" $(AWK) -f $@.awk  < "$(srcdir)"/$@.in >_$@ 2>&1 || 
echo EXIT CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
 
+typeof6:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -f $@.awk  >_$@ 2>&1 || echo EXIT CODE: $$? 
>>_$@
+       @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+
 double1:
        @echo $@ $(ZOS_FAIL)
        @AWKPATH="$(srcdir)" $(AWK) -f $@.awk  >_$@ 2>&1 || echo EXIT CODE: $$? 
>>_$@

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

Summary of changes:
 pc/ChangeLog     |  4 ++++
 pc/Makefile.tst  |  7 ++++++-
 test/ChangeLog   |  5 +++++
 test/Makefile.am |  4 +++-
 test/Makefile.in |  9 ++++++++-
 test/Maketests   |  5 +++++
 test/typeof6.awk | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 test/typeof6.ok  |  1 +
 8 files changed, 78 insertions(+), 3 deletions(-)
 create mode 100644 test/typeof6.awk
 create mode 100644 test/typeof6.ok


hooks/post-receive
-- 
gawk



reply via email to

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