Make WordPress Core

Changeset 34773


Ignore:
Timestamp:
10/02/2015 01:50:12 PM (11 years ago)
Author:
boonebgorges
Message:

Improvements to PCRE benchmarking tests.

  • Add test file accidentally omitted from [34761].
  • Bail properly from benchmarker when a preg_last_error() is found.

Props miqrogroove.
See #34121.

Location:
trunk/tests/phpunit
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/utils.php

    r34772 r34773  
    434434        case PREG_RECURSION_LIMIT_ERROR:
    435435            trigger_error('PCRE recursion limit encountered before backtrack limit.');
    436             break;
     436            return;
    437437        case PREG_BAD_UTF8_ERROR:
    438438            trigger_error('UTF-8 error during PCRE benchmark.');
    439             break;
     439            return;
    440440        case PREG_INTERNAL_ERROR:
    441441            trigger_error('Internal error during PCRE benchmark.');
    442             break;
     442            return;
    443443        default:
    444             trigger_error('Unexpected error during PCRE benchmark.');   
     444            trigger_error('Unexpected error during PCRE benchmark.');
     445            return;
    445446        }
    446447    }
Note: See TracChangeset for help on using the changeset viewer.