[Pcre-svn] [1067] code/trunk/src/pcre2_jit_test.c: JIT tests…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [1067] code/trunk/src/pcre2_jit_test.c: JIT tests for script runs must only run when Unicode is supported.
Revision: 1067
          http://www.exim.org/viewvc/pcre2?view=rev&revision=1067
Author:   ph10
Date:     2019-02-06 19:02:23 +0000 (Wed, 06 Feb 2019)
Log Message:
-----------
JIT tests for script runs must only run when Unicode is supported.


Modified Paths:
--------------
    code/trunk/src/pcre2_jit_test.c


Modified: code/trunk/src/pcre2_jit_test.c
===================================================================
--- code/trunk/src/pcre2_jit_test.c    2019-02-06 18:11:36 UTC (rev 1066)
+++ code/trunk/src/pcre2_jit_test.c    2019-02-06 19:02:23 UTC (rev 1067)
@@ -869,6 +869,7 @@
     { MU, A, 0, 0, "((.)(?:.|(*COMMIT)\\2{3}(*ACCEPT).*|.*)){0}_(?1){0,4}_", "_aaaabbbbccccddd_ _aaaabbbbccccdddd_" },


     /* Script runs and iterations. */
+#ifdef SUPPORT_UNICODE         
     { MU, A, 0, 0, "!(*sr:\\w\\w|\\w\\w\\w)*#", "!abcdefghijklmno!abcdefghijklmno!abcdef#" },
     { MU, A, 0, 0, "!(*sr:\\w\\w|\\w\\w\\w)+#", "!abcdefghijklmno!abcdefghijklmno!abcdef#" },
     { MU, A, 0, 0, "!(*sr:\\w\\w|\\w\\w\\w)*?#", "!abcdefghijklmno!abcdefghijklmno!abcdef#" },
@@ -877,6 +878,7 @@
     { MU, A, 0, 0, "!(*sr:\\w\\w|\\w\\w\\w)++#", "!abcdefghijklmno!abcdefghijklmno!abcdef#" },
     { MU, A, 0, 0, "!(*sr:\\w\\w|\\w\\w\\w)?#", "!ab!abc!ab!ab#" },
     { MU, A, 0, 0, "!(*sr:\\w\\w|\\w\\w\\w)??#", "!ab!abc!ab!ab#" },
+#endif


     /* Deep recursion. */
     { MU, A, 0, 0, "((((?:(?:(?:\\w)+)?)*|(?>\\w)+?)+|(?>\\w)?\?)*)?\\s", "aaaaa+ " },