Commit: a839e18932f354c1e8766c88d039b6ae8f45007b Author: Matt Ficken <v-maf...@microsoft.com> Fri, 12 Jul 2013 13:50:59 -0700 Parents: 8eeb03426f61a493a0bd8050d601566db7237ab5 Branches: master
Link: http://git.php.net/?p=pftt2.git;a=commitdiff;h=a839e18932f354c1e8766c88d039b6ae8f45007b Log: fix configuration bug for mbstring PHPT tests Changed paths: M src/com/mostc/pftt/runner/AbstractLocalTestPackRunner.java M src/com/mostc/pftt/runner/LocalPhptTestPackRunner.java Diff: diff --git a/src/com/mostc/pftt/runner/AbstractLocalTestPackRunner.java b/src/com/mostc/pftt/runner/AbstractLocalTestPackRunner.java index f0dce90..6677bc8 100644 --- a/src/com/mostc/pftt/runner/AbstractLocalTestPackRunner.java +++ b/src/com/mostc/pftt/runner/AbstractLocalTestPackRunner.java @@ -811,6 +811,7 @@ public abstract class AbstractLocalTestPackRunner<A extends ActiveTestPack, S ex || name.equals("ext/mbstring/tests/mb_ereg_replace_variation1.phpt") || name.equals("ext/phar/tests/phar_dotted_path.phpt") || name.equals("ext/session/tests/027.phpt") + || name.startsWith("ext/mbstring/tests/mb_output") || name.equals("ext/mbstring/tests/mb_ereg_replace_variation1.phpt") || name.equals("ext/phar/tests/cache_list/frontcontroller13.phpt") || name.equals("ext/phar/tests/frontcontroller29.phpt") diff --git a/src/com/mostc/pftt/runner/LocalPhptTestPackRunner.java b/src/com/mostc/pftt/runner/LocalPhptTestPackRunner.java index d96794e..8d10fdc 100644 --- a/src/com/mostc/pftt/runner/LocalPhptTestPackRunner.java +++ b/src/com/mostc/pftt/runner/LocalPhptTestPackRunner.java @@ -229,6 +229,19 @@ public class LocalPhptTestPackRunner extends AbstractLocalTestPackRunner<PhptAct for ( EPhptTestStatus status : EPhptTestStatus.values() ) { cm.println(EPrintType.CLUE, getClass(), status+" "+phpt.count(status)+" tests"); } + // show (some) of the failing tests (for convenience) + int fail_count = phpt.count(EPhptTestStatus.FAIL); + if (fail_count > 0) { + int show_count = 0; + for ( String test_name : phpt.getTestNames(EPhptTestStatus.FAIL)) { + cm.println(EPrintType.CLUE, getClass(), "Failing test: "+test_name); + show_count++; + if (show_count >= 20) { + cm.println(EPrintType.CLUE, getClass(), "And "+(fail_count-show_count)+" more failing test(s)"); + break; + } + } + } cm.println(EPrintType.CLUE, getClass(), "Pass Rate(%): "+phpt.passRate()); } -- PHP Quality Assurance Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php