[gtksourceview] testsuite: disable JIT for comparisons



commit d2a2e293f9110a07b4f8d9d02f992ff1aa4a8eb8
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jul 5 14:48:58 2021 -0700

    testsuite: disable JIT for comparisons
    
    We need additional work to make things match exactly with JIT enabled.

 testsuite/test-regex.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/testsuite/test-regex.c b/testsuite/test-regex.c
index de4863cb..0350fde5 100644
--- a/testsuite/test-regex.c
+++ b/testsuite/test-regex.c
@@ -104,7 +104,8 @@ compare_impl_regex_to_g_regex (const char         *subject,
   GError *err1 = NULL;
   GError *err2 = NULL;
   GRegex *reg1 = g_regex_new (pattern, compile_flags, 0, &err1);
-  ImplRegex *reg2 = impl_regex_new (pattern, compile_flags, 0, &err2);
+  /* Disable JIT for ImplRegex, as it is not as flexible for search */
+  ImplRegex *reg2 = impl_regex_new (pattern, compile_flags & ~G_REGEX_OPTIMIZE, 0, &err2);
   GMatchInfo *mi1 = NULL;
   ImplMatchInfo *mi2 = NULL;
   gboolean r1, r2;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]