diff options
author | zherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2012-07-10 04:33:00 +0000 |
---|---|---|
committer | zherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2012-07-10 04:33:00 +0000 |
commit | d440f2f364f237280005c06bf059c3b569dc44b7 (patch) | |
tree | b9c52c41a266b4e1aa92a8236cafed976276fed4 /pcre_jit_test.c | |
parent | dcd6ae035f58c6126b4da8f0e4de5359c4c88e38 (diff) | |
download | pcre-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.c | 5 |
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); |