mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 11:56:16 +01:00
tests: Tweak whether a PCRE test is enabled
Rather than predicating the test on whether the system PCRE is being used, use a more specific version comparison which should work regardless of whether the system or internal copy of libpcre is being used. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #962
This commit is contained in:
parent
601ef3b6be
commit
1891165e73
@ -2675,7 +2675,7 @@ main (int argc, char *argv[])
|
|||||||
TEST_EXPAND("a", "a", "\\0130", FALSE, "X");
|
TEST_EXPAND("a", "a", "\\0130", FALSE, "X");
|
||||||
TEST_EXPAND("a", "a", "\\\\\\0", FALSE, "\\a");
|
TEST_EXPAND("a", "a", "\\\\\\0", FALSE, "\\a");
|
||||||
TEST_EXPAND("a(?P<G>.)c", "xabcy", "X\\g<G>X", FALSE, "XbX");
|
TEST_EXPAND("a(?P<G>.)c", "xabcy", "X\\g<G>X", FALSE, "XbX");
|
||||||
#ifndef USE_SYSTEM_PCRE
|
#if !(PCRE_MAJOR > 8 || (PCRE_MAJOR == 8 && PCRE_MINOR >= 34))
|
||||||
/* PCRE >= 8.34 no longer allows this usage. */
|
/* PCRE >= 8.34 no longer allows this usage. */
|
||||||
TEST_EXPAND("(.)(?P<1>.)", "ab", "\\1", FALSE, "a");
|
TEST_EXPAND("(.)(?P<1>.)", "ab", "\\1", FALSE, "a");
|
||||||
TEST_EXPAND("(.)(?P<1>.)", "ab", "\\g<1>", FALSE, "a");
|
TEST_EXPAND("(.)(?P<1>.)", "ab", "\\g<1>", FALSE, "a");
|
||||||
|
Loading…
Reference in New Issue
Block a user