Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libc/regex/data Comment out tests that the new str...



details:   https://anonhg.NetBSD.org/src/rev/987f60d5cd44
branches:  trunk
changeset: 959742:987f60d5cd44
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Feb 23 14:57:16 2021 +0000

description:
Comment out tests that the new stricter regex does not like

diffstat:

 tests/lib/libc/regex/data/meta.in          |   3 ++-
 tests/lib/libc/regex/data/repet_bounded.in |  11 ++++++-----
 tests/lib/libc/regex/data/repet_multi.in   |   3 ++-
 3 files changed, 10 insertions(+), 7 deletions(-)

diffs (55 lines):

diff -r 016b00ad37f8 -r 987f60d5cd44 tests/lib/libc/regex/data/meta.in
--- a/tests/lib/libc/regex/data/meta.in Tue Feb 23 14:50:33 2021 +0000
+++ b/tests/lib/libc/regex/data/meta.in Tue Feb 23 14:57:16 2021 +0000
@@ -4,7 +4,8 @@
 a\*c           &       a*c     a*c
 a\\b           &       a\b     a\b
 a\\\*b         &       a\*b    a\*b
-a\bc           &       abc     abc
+# legacy escape
+#a\bc          &       abc     abc
 a\             &C      EESCAPE
 a\\bc          &       a\bc    a\bc
 \{             bC      BADRPT
diff -r 016b00ad37f8 -r 987f60d5cd44 tests/lib/libc/regex/data/repet_bounded.in
--- a/tests/lib/libc/regex/data/repet_bounded.in        Tue Feb 23 14:50:33 2021 +0000
+++ b/tests/lib/libc/regex/data/repet_bounded.in        Tue Feb 23 14:57:16 2021 +0000
@@ -1,9 +1,10 @@
 # the dreaded bounded repetitions
-{              &       {       {
-{abc           &       {abc    {abc
+# unclosed and with missing values are now errors
+#{             &       {       {
+#{abc          &       {abc    {abc
 {1             C       BADRPT
 {1}            C       BADRPT
-a{b            &       a{b     a{b
+#a{b           &       a{b     a{b
 a{1}b          -       ab      ab
 a\{1\}b                b       ab      ab
 a{1,}b         -       ab      ab
@@ -16,9 +17,9 @@
 a\{1a          bC      EBRACE
 a{1a}          C       BADBR
 a\{1a\}                bC      BADBR
-a{,2}          -       a{,2}   a{,2}
+#a{,2}         -       a{,2}   a{,2}
 a\{,2\}                bC      BADBR
-a{,}           -       a{,}    a{,}
+#a{,}          -       a{,}    a{,}
 a\{,\}         bC      BADBR
 a{1,x}         C       BADBR
 a\{1,x\}       bC      BADBR
diff -r 016b00ad37f8 -r 987f60d5cd44 tests/lib/libc/regex/data/repet_multi.in
--- a/tests/lib/libc/regex/data/repet_multi.in  Tue Feb 23 14:50:33 2021 +0000
+++ b/tests/lib/libc/regex/data/repet_multi.in  Tue Feb 23 14:57:16 2021 +0000
@@ -15,7 +15,8 @@
 a{1}*          C       BADRPT
 a{1}+          C       BADRPT
 a{1}?          C       BADRPT
-a*{b}          -       a{b}    a{b}
+# repetition needs to be a number
+#a*{b}         -       a{b}    a{b}
 a\{1\}\{1\}    bC      BADRPT
 a*\{1\}                bC      BADRPT
 a\{1\}*                bC      BADRPT



Home | Main Index | Thread Index | Old Index