/[pcre]/code/trunk/pcre_jit_test.c
ViewVC logotype

Diff of /code/trunk/pcre_jit_test.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 881 by ph10, Sun Jan 15 18:07:05 2012 UTC revision 884 by zherczeg, Tue Jan 17 11:52:43 2012 UTC
# Line 860  static int regression_tests(void) Line 860  static int regression_tests(void)
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;
# Line 889  static int regression_tests(void) Line 890  static int regression_tests(void)
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);
# Line 898  static int regression_tests(void) Line 906  static int regression_tests(void)
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);
# Line 907  static int regression_tests(void) Line 915  static int regression_tests(void)
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) {

Legend:
Removed from v.881  
changed lines
  Added in v.884

  ViewVC Help
Powered by ViewVC 1.1.5