summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2021-07-05 14:48:58 -0700
committerChristian Hergert <chergert@redhat.com>2021-07-05 15:00:48 -0700
commitd2a2e293f9110a07b4f8d9d02f992ff1aa4a8eb8 (patch)
treed8bc8b421b119ba634378ad2caa1af4093a0a52e /testsuite
parent100c9f4eacb6120ba5db97373e7620d0b2a67157 (diff)
downloadgtksourceview-d2a2e293f9110a07b4f8d9d02f992ff1aa4a8eb8.tar.gz
testsuite: disable JIT for comparisons
We need additional work to make things match exactly with JIT enabled.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/test-regex.c3
1 files changed, 2 insertions, 1 deletions
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;