diff options
author | zherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2012-02-10 08:05:30 +0000 |
---|---|---|
committer | zherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2012-02-10 08:05:30 +0000 |
commit | db22aecdebae325ccdf63941eb1f09fa738ff5b6 (patch) | |
tree | 59c4ba335dc9dc646b06cfb7647da2c8f80782c8 /pcre_jit_test.c | |
parent | aacae019f793ef84f7527fc52ee51f66617da26a (diff) | |
download | pcre-db22aecdebae325ccdf63941eb1f09fa738ff5b6.tar.gz |
Fixing a wrong JIT test case
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@911 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_jit_test.c')
-rw-r--r-- | pcre_jit_test.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pcre_jit_test.c b/pcre_jit_test.c index e226dc0..99d63aa 100644 --- a/pcre_jit_test.c +++ b/pcre_jit_test.c @@ -188,7 +188,8 @@ static struct regression_test_case regression_test_cases[] = { { PCRE_MULTILINE | PCRE_UTF8 | PCRE_NEWLINE_ANY, 0, "^-", "a--\xe2\x80\xa8--" }, { PCRE_MULTILINE | PCRE_UTF8 | PCRE_NEWLINE_ANY, 0, "^-", "a--\xc2\x85--" }, { 0, 0, "ab$", "ab" }, - { 0, 0 | F_NOMATCH, "ab$", "ab\r\n" }, + { 0, 0 | F_NOMATCH, "ab$", "abab\n\n" }, + { PCRE_DOLLAR_ENDONLY, 0 | F_NOMATCH, "ab$", "abab\r\n" }, { PCRE_MULTILINE | PCRE_NEWLINE_CRLF, 0, "a$", "\r\raa\n\naa\r\naa" }, { PCRE_MULTILINE | PCRE_NEWLINE_ANY, 0, "a$", "aaa" }, { PCRE_MULTILINE | PCRE_UTF8 | PCRE_NEWLINE_ANYCRLF, 0, "#$", "#\xc2\x85###\r#" }, @@ -674,7 +675,7 @@ static const unsigned char *tables(int mode) static unsigned char *tables_copy; const char *errorptr; int erroroffset; - const unsigned char *default_tables; + unsigned char *default_tables; #ifdef SUPPORT_PCRE8 pcre *regex; char null_str[1] = { 0 }; @@ -860,7 +861,7 @@ static int regression_tests(void) { struct regression_test_case *current = regression_test_cases; const char *error; - const char *cpu_info; + char *cpu_info; int i, err_offs; int is_successful, is_ascii_pattern, is_ascii_input; int total = 0; |