| 860 |
{ |
{ |
| 861 |
struct regression_test_case *current = regression_test_cases; |
struct regression_test_case *current = regression_test_cases; |
| 862 |
const char *error; |
const char *error; |
| 863 |
|
const char *cpu_info; |
| 864 |
int i, err_offs; |
int i, err_offs; |
| 865 |
int is_successful, is_ascii_pattern, is_ascii_input; |
int is_successful, is_ascii_pattern, is_ascii_input; |
| 866 |
int total = 0; |
int total = 0; |
| 890 |
utf or ucp may make tests fail, if the pcre_exec result is the SAME, it is |
utf or ucp may make tests fail, if the pcre_exec result is the SAME, it is |
| 891 |
still considered successful from pcre_jit_test point of view. */ |
still considered successful from pcre_jit_test point of view. */ |
| 892 |
|
|
| 893 |
printf("Running JIT regression\n"); |
#ifdef SUPPORT_PCRE8 |
| 894 |
|
pcre_config(PCRE_CONFIG_JITTARGET, &cpu_info); |
| 895 |
|
#else |
| 896 |
|
pcre16_config(PCRE_CONFIG_JITTARGET, &cpu_info); |
| 897 |
|
#endif |
| 898 |
|
|
| 899 |
|
printf("Running JIT regression tests\n"); |
| 900 |
|
printf(" target CPU of SLJIT compiler: %s\n", cpu_info); |
| 901 |
|
|
| 902 |
#ifdef SUPPORT_PCRE8 |
#ifdef SUPPORT_PCRE8 |
| 903 |
pcre_config(PCRE_CONFIG_UTF8, &utf8); |
pcre_config(PCRE_CONFIG_UTF8, &utf8); |
| 906 |
disabled_flags8 |= PCRE_UTF8; |
disabled_flags8 |= PCRE_UTF8; |
| 907 |
if (!ucp8) |
if (!ucp8) |
| 908 |
disabled_flags8 |= PCRE_UCP; |
disabled_flags8 |= PCRE_UCP; |
| 909 |
printf(" in 8 bit mode with utf8 %s and ucp %s:\n", utf8 ? "enabled" : "disabled", ucp8 ? "enabled" : "disabled"); |
printf(" in 8 bit mode with utf8 %s and ucp %s:\n", utf8 ? "enabled" : "disabled", ucp8 ? "enabled" : "disabled"); |
| 910 |
#endif |
#endif |
| 911 |
#ifdef SUPPORT_PCRE16 |
#ifdef SUPPORT_PCRE16 |
| 912 |
pcre16_config(PCRE_CONFIG_UTF16, &utf16); |
pcre16_config(PCRE_CONFIG_UTF16, &utf16); |
| 915 |
disabled_flags16 |= PCRE_UTF8; |
disabled_flags16 |= PCRE_UTF8; |
| 916 |
if (!ucp16) |
if (!ucp16) |
| 917 |
disabled_flags16 |= PCRE_UCP; |
disabled_flags16 |= PCRE_UCP; |
| 918 |
printf(" in 16 bit mode with utf16 %s and ucp %s:\n", utf16 ? "enabled" : "disabled", ucp16 ? "enabled" : "disabled"); |
printf(" in 16 bit mode with utf16 %s and ucp %s:\n", utf16 ? "enabled" : "disabled", ucp16 ? "enabled" : "disabled"); |
| 919 |
#endif |
#endif |
| 920 |
|
|
| 921 |
while (current->pattern) { |
while (current->pattern) { |