Update PCRE tests to fix case confusion (Closes: #1095286)
authorMatthew Vernon <matthew@debian.org>
Thu, 6 Feb 2025 14:44:19 +0000 (14:44 +0000)
committerOtto Kekäläinen <otto@debian.org>
Wed, 19 Feb 2025 16:57:57 +0000 (08:57 -0800)
commit392c5391361ece4e7a810d03cb64daa5da91d852
treebd9a34f4a3837b6383f82c9c1a61d8829a84d85d
parentd39f44c2895187c53cf842f1d7a784137500cae7
Update PCRE tests to fix case confusion (Closes: #1095286)

MariaDB RLIKE is case-insensitive; in perl the Unicode character
property tests \p{Lu} and \p{Ll} are equivalent to \p{L&} in
case-insensitive matches. So remove those tests (since there is
already the \p{L&} test).

This fixes a FTBFS with PCRE2 10.45 which fixed its handling of Ll Lt
and Lu under case-insensitive matching to match perl's behaviour.

Example of failure seen in MTR:

    main.func_regexp_pcre                    w4 [ fail ]
            Test ended at 2025-02-06 07:00:25
    CURRENT_TEST: main.func_regexp_pcre
    @@ -169,13 +169,13 @@
     \p{Latin} 㐗 0
     \p{Latin} 갷 0
     \p{Ll} 1 0
    -\p{Ll} A 0
    +\p{Ll} A 1
     \p{Ll} a 1
    -\p{Ll} À 0
    +\p{Ll} À 1
     \p{Ll} à 1
    -\p{Ll} Σ 0
    +\p{Ll} Σ 1
     \p{Ll} σ 1
    -\p{Ll} Я 0
    +\p{Ll} Я 1
     \p{Ll} я 1
     \p{Ll} ௨ 0
     \p{Ll} ප 0

Forwarded: no

Gbp-Pq: Name 1095286-pcre-tests-case-confusion.patch
mysql-test/main/func_regexp_pcre.result
mysql-test/main/func_regexp_pcre.test