gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-1799-g4d6349


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-1799-g4d63496
Date: Thu, 26 May 2016 20:28:01 +0000 (UTC)

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, master has been updated
       via  4d634960a411622cfb2e757d8e98c84f7601e09e (commit)
       via  1d6fd4d8bc7e4034fe45d78f31a7295f4592b3ec (commit)
       via  14d958c82b939d26ad37ab0c0debfedf780404d0 (commit)
       via  2af19378be4e7eeec7754053070cf4bad035d7b1 (commit)
      from  87eb0bd877d0503274576c94671f0b4297791b36 (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=4d634960a411622cfb2e757d8e98c84f7601e09e

commit 4d634960a411622cfb2e757d8e98c84f7601e09e
Author: Arnold D. Robbins <address@hidden>
Date:   Thu May 26 16:27:43 2016 -0400

    New test, arrayind2.

diff --git a/test/ChangeLog b/test/ChangeLog
index c395fc6..b968955 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,9 @@
+2016-05-26         Arnold D. Robbins     <address@hidden>
+
+       * Makefile.am (arrayind2): New test.
+       * arrayind2.awk, arrayind2.ok: New files.
+       Thanks to Andrew J. Schorr <address@hidden>.
+
 2016-05-25         Arnold D. Robbins     <address@hidden>
 
        * arrayind1.awk: Flush writes to stderr. We hope this helps
diff --git a/test/Makefile.am b/test/Makefile.am
index 6399064..8d62e80 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -55,6 +55,8 @@ EXTRA_DIST = \
        arrayind1.awk \
        arrayind1.in \
        arrayind1.ok \
+       arrayind2.awk \
+       arrayind2.ok \
        arrayparm.awk \
        arrayparm.ok \
        arrayprm2.awk \
@@ -1094,7 +1096,7 @@ CLEANFILES = core core.* fmtspcl.ok
 
 # try to keep these sorted. each letter starts a new line
 BASIC_TESTS = \
-       addcomma anchgsub argarray arrayind1 arrayparm arrayprm2 arrayprm3 \
+       addcomma anchgsub argarray arrayind1 arrayind2 arrayparm arrayprm2 
arrayprm3 \
        arrayref arrymem1 arryref2 arryref3 arryref4 arryref5 arynasty \
        arynocls aryprm1 aryprm2 aryprm3 aryprm4 aryprm5 aryprm6 aryprm7 \
        aryprm8 aryprm9 arysubnm asgext awkpath \
diff --git a/test/Makefile.in b/test/Makefile.in
index cc44371..37e9b9b 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -312,6 +312,8 @@ EXTRA_DIST = \
        arrayind1.awk \
        arrayind1.in \
        arrayind1.ok \
+       arrayind2.awk \
+       arrayind2.ok \
        arrayparm.awk \
        arrayparm.ok \
        arrayprm2.awk \
@@ -1350,7 +1352,7 @@ CLEANFILES = core core.* fmtspcl.ok
 
 # try to keep these sorted. each letter starts a new line
 BASIC_TESTS = \
-       addcomma anchgsub argarray arrayind1 arrayparm arrayprm2 arrayprm3 \
+       addcomma anchgsub argarray arrayind1 arrayind2 arrayparm arrayprm2 
arrayprm3 \
        arrayref arrymem1 arryref2 arryref3 arryref4 arryref5 arynasty \
        arynocls aryprm1 aryprm2 aryprm3 aryprm4 aryprm5 aryprm6 aryprm7 \
        aryprm8 aryprm9 arysubnm asgext awkpath \
@@ -2699,6 +2701,11 @@ arrayind1:
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  < 
"$(srcdir)"/address@hidden >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
 
+arrayind2:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
+       @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
 arrayparm:
        @echo $@
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
diff --git a/test/Maketests b/test/Maketests
index a831496..0895d23 100644
--- a/test/Maketests
+++ b/test/Maketests
@@ -15,6 +15,11 @@ arrayind1:
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  < 
"$(srcdir)"/address@hidden >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
 
+arrayind2:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
+       @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
 arrayparm:
        @echo $@
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
diff --git a/test/arrayind2.awk b/test/arrayind2.awk
new file mode 100644
index 0000000..200694e
--- /dev/null
+++ b/test/arrayind2.awk
@@ -0,0 +1,8 @@
+BEGIN {
+        pos[0] = 0
+        posout[0] = 0
+        split("00000779770060", f)      # f[1] is a strnum
+        print typeof(f[1])
+        pos[f[1]] = 1
+        print typeof(f[1])
+}
diff --git a/test/arrayind2.ok b/test/arrayind2.ok
new file mode 100644
index 0000000..335b200
--- /dev/null
+++ b/test/arrayind2.ok
@@ -0,0 +1,2 @@
+strnum
+strnum

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

commit 1d6fd4d8bc7e4034fe45d78f31a7295f4592b3ec
Merge: 87eb0bd 14d958c
Author: Arnold D. Robbins <address@hidden>
Date:   Thu May 26 16:24:28 2016 -0400

    Merge branch 'gawk-4.1-stable'


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

Summary of changes:
 ChangeLog          |   14 ++++++++++++--
 awk.h              |    2 +-
 str_array.c        |   22 +++++++++++++---------
 test/ChangeLog     |    6 ++++++
 test/Makefile.am   |    4 +++-
 test/Makefile.in   |    9 ++++++++-
 test/Maketests     |    5 +++++
 test/arrayind2.awk |    8 ++++++++
 test/arrayind2.ok  |    2 ++
 9 files changed, 58 insertions(+), 14 deletions(-)
 create mode 100644 test/arrayind2.awk
 create mode 100644 test/arrayind2.ok


hooks/post-receive
-- 
gawk



reply via email to

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