summaryrefslogtreecommitdiff
path: root/test/test_options.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2025-03-16 12:06:26 +0100
committerJörg Frings-Fürst <debian@jff.email>2025-03-16 12:06:26 +0100
commit048f2aabecc8adf1fcc76ecf0dcad9ef07c0ae98 (patch)
tree6e32c4075b0bef0cfa7a9c3ece4294db7a10c046 /test/test_options.c
parentb0e9d5f1322c403a2ba1df7f86e27d2514f576da (diff)
parente6ce8c11c114a794f5523eaaec52688716873b72 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'test/test_options.c')
-rw-r--r--test/test_options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_options.c b/test/test_options.c
index ce92ee1..9aa2538 100644
--- a/test/test_options.c
+++ b/test/test_options.c
@@ -1,6 +1,6 @@
/*
* test_options.c
- * Copyright (c) 2020-2021 K.Kosako
+ * Copyright (c) 2020-2024 K.Kosako
*/
#ifdef ONIG_ESCAPE_UCHAR_COLLISION
#undef ONIG_ESCAPE_UCHAR_COLLISION
@@ -64,7 +64,7 @@ static void xx(OnigOptionType options, char* pattern, char* str,
r = onig_search(reg, (UChar* )str, (UChar* )(str + SLEN(str)),
(UChar* )str, (UChar* )(str + SLEN(str)),
region, options);
- if (r < ONIG_MISMATCH) {
+ if (r < ONIG_MISMATCH || error_no < ONIG_MISMATCH) {
char s[ONIG_MAX_ERROR_MESSAGE_LEN];
if (error_no == 0) {