summaryrefslogtreecommitdiff
path: root/test/test_back.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2021-04-26 17:34:16 +0200
committerJörg Frings-Fürst <debian@jff.email>2021-04-26 17:34:16 +0200
commiteac65ba44805c402f894b700b602c2e891f92a84 (patch)
tree8c74372bd97a480de440013af1dda4958189e24e /test/test_back.c
parent7ce72ba4d420fde9672c2fb2dd7a6f5a26815e26 (diff)
parentdbedac4783f09292abb187d0c59d4032594038b6 (diff)
Merge branch 'release/debian/6.9.6-1'debian/6.9.6-1
Diffstat (limited to 'test/test_back.c')
-rw-r--r--test/test_back.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/test_back.c b/test/test_back.c
index 9a337b9..6bf5159 100644
--- a/test/test_back.c
+++ b/test/test_back.c
@@ -18,6 +18,10 @@ static int nsucc = 0;
static int nfail = 0;
static int nerror = 0;
+#ifdef __TRUSTINSOFT_ANALYZER__
+static int nall = 0;
+#endif
+
static FILE* err_file;
static OnigRegion* region;
@@ -25,6 +29,10 @@ static OnigRegion* region;
static void xx(char* pattern, char* str, int from, int to, int mem, int not,
int error_no, int line_no)
{
+#ifdef __TRUSTINSOFT_ANALYZER__
+ if (nall++ % TIS_TEST_CHOOSE_MAX != TIS_TEST_CHOOSE_CURRENT) return;
+#endif
+
int r;
regex_t* reg;
OnigErrorInfo einfo;
@@ -1419,7 +1427,7 @@ extern int main(int argc, char* argv[])
x2("\\p{Common}", "\xe3\x8b\xbf", 0, 3); /* U+32FF */
x2("\\p{In_Enclosed_CJK_Letters_and_Months}", "\xe3\x8b\xbf", 0, 3); /* U+32FF */
- e("\\x{7fffffff}", "", ONIGERR_TOO_BIG_WIDE_CHAR_VALUE);
+ e("\\x{7fffffff}", "", ONIGERR_INVALID_CODE_POINT_VALUE);
e("[\\x{7fffffff}]", "", ONIGERR_INVALID_CODE_POINT_VALUE);
e("\\u040", "@", ONIGERR_INVALID_CODE_POINT_VALUE);
e("(?<abc>\\g<abc>)", "zzzz", ONIGERR_NEVER_ENDING_RECURSION);