summaryrefslogtreecommitdiff
path: root/pcre_jit_test.c
diff options
context:
space:
mode:
authorzherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-07-10 04:33:00 +0000
committerzherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-07-10 04:33:00 +0000
commitd440f2f364f237280005c06bf059c3b569dc44b7 (patch)
treeb9c52c41a266b4e1aa92a8236cafed976276fed4 /pcre_jit_test.c
parentdcd6ae035f58c6126b4da8f0e4de5359c4c88e38 (diff)
downloadpcre-d440f2f364f237280005c06bf059c3b569dc44b7.tar.gz
Fix a firstline related bug introduced in r986, and use TMP3 as temporary storage for firstline
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@993 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_jit_test.c')
-rw-r--r--pcre_jit_test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pcre_jit_test.c b/pcre_jit_test.c
index 2451908..11a286b 100644
--- a/pcre_jit_test.c
+++ b/pcre_jit_test.c
@@ -592,6 +592,7 @@ static struct regression_test_case regression_test_cases[] = {
{ PCRE_MULTILINE | PCRE_UTF8 | PCRE_NEWLINE_CRLF | PCRE_FIRSTLINE, 0 | F_NOMATCH, "ba", "bbb\r\nba" },
{ PCRE_MULTILINE | PCRE_UTF8 | PCRE_NEWLINE_CRLF | PCRE_FIRSTLINE, 0 | F_NOMATCH | F_PROPERTY, "\\p{Any}{4}|a", "\r\na" },
{ PCRE_MULTILINE | PCRE_UTF8 | PCRE_NEWLINE_CRLF | PCRE_FIRSTLINE, 1, ".", "\r\n" },
+ { PCRE_FIRSTLINE | PCRE_NEWLINE_LF | PCRE_DOTALL, 0 | F_NOMATCH, "ab.", "ab" },
/* Recurse. */
{ MUA, 0, "(a)(?1)", "aa" },
@@ -992,7 +993,7 @@ static int regression_tests(void)
pcre_free(re8);
re8 = NULL;
}
- if (!(extra8->flags & PCRE_EXTRA_EXECUTABLE_JIT)) {
+ else if (!(extra8->flags & PCRE_EXTRA_EXECUTABLE_JIT)) {
printf("\n8 bit: JIT compiler does not support: %s\n", current->pattern);
pcre_free_study(extra8);
pcre_free(re8);
@@ -1023,7 +1024,7 @@ static int regression_tests(void)
pcre16_free(re16);
re16 = NULL;
}
- if (!(extra16->flags & PCRE_EXTRA_EXECUTABLE_JIT)) {
+ else if (!(extra16->flags & PCRE_EXTRA_EXECUTABLE_JIT)) {
printf("\n16 bit: JIT compiler does not support: %s\n", current->pattern);
pcre16_free_study(extra16);
pcre16_free(re16);