From 5e3a1da5033fc26bfcb62c992124166d0d07c6f1 Mon Sep 17 00:00:00 2001 From: "Philip.Hazel" Date: Sat, 16 Sep 2017 11:46:08 +0000 Subject: [PATCH] Remove \C tests from JIT regression when NEVER_BACKSLASH_C is defined. --- ChangeLog | 3 +++ src/pcre2_jit_test.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7bb3c11..7596250 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,9 @@ that is called by both pcre2_match() and pcre2_dfa_match(). 4. Add new pcre2_config() options: PCRE2_CONFIG_NEVER_BACKSLASH_C and PCRE2_CONFIG_COMPILED_WIDTHS. +5. Cut out \C tests in the JIT regression tests when NEVER_BACKSLASH_C is +defined (e.g. by --enable-never-backslash-C). + Version 10.30 14-August-2017 ---------------------------- diff --git a/src/pcre2_jit_test.c b/src/pcre2_jit_test.c index 96280b7..fd76e34 100644 --- a/src/pcre2_jit_test.c +++ b/src/pcre2_jit_test.c @@ -179,10 +179,12 @@ static struct regression_test_case regression_test_cases[] = { { PCRE2_CASELESS, 0, 0, 0, "\xff#a", "\xff#\xff\xfe##\xff#A" }, { PCRE2_CASELESS, 0, 0, 0, "\xfe", "\xff\xfc#\xfe\xfe" }, { PCRE2_CASELESS, 0, 0, 0, "a1", "Aa1" }, +#ifndef NEVER_BACKSLASH_C { M, A, 0, 0, "\\Ca", "cda" }, { CM, A, 0, 0, "\\Ca", "CDA" }, { M, A, 0, 0 | F_NOMATCH, "\\Cx", "cda" }, { CM, A, 0, 0 | F_NOMATCH, "\\Cx", "CDA" }, +#endif { CMUP, A, 0, 0, "\xf0\x90\x90\x80\xf0\x90\x90\xa8", "\xf0\x90\x90\xa8\xf0\x90\x90\x80" }, { CMUP, A, 0, 0, "\xf0\x90\x90\x80{2}", "\xf0\x90\x90\x80#\xf0\x90\x90\xa8\xf0\x90\x90\x80" }, { CMUP, A, 0, 0, "\xf0\x90\x90\xa8{2}", "\xf0\x90\x90\x80#\xf0\x90\x90\xa8\xf0\x90\x90\x80" },