@@ -693,7 +693,6 @@ function main(): void
693
693
if ($ test_cnt ) {
694
694
putenv ('NO_INTERACTION=1 ' );
695
695
usort ($ test_files , "test_sort " );
696
- $ start_timestamp = time ();
697
696
$ start_time = hrtime (true );
698
697
699
698
echo "Running selected tests. \n" ;
@@ -3651,11 +3650,6 @@ class RuntestsValgrind
3651
3650
protected bool $ version_3_8_0 ;
3652
3651
protected string $ tool ;
3653
3652
3654
- public function getHeader (): string
3655
- {
3656
- return $ this ->header ;
3657
- }
3658
-
3659
3653
public function __construct (array $ environment , string $ tool = 'memcheck ' )
3660
3654
{
3661
3655
$ this ->tool = $ tool ;
@@ -3672,20 +3666,6 @@ public function __construct(array $environment, string $tool = 'memcheck')
3672
3666
$ this ->header = sprintf ("%s (%s) " , trim ($ header ), $ this ->tool );
3673
3667
$ this ->version_3_8_0 = version_compare ($ version , '3.8.0 ' , '>= ' );
3674
3668
}
3675
-
3676
- public function wrapCommand (string $ cmd , string $ memcheck_filename , bool $ check_all ): string
3677
- {
3678
- $ vcmd = "valgrind -q --tool= {$ this ->tool } --trace-children=yes " ;
3679
- if ($ check_all ) {
3680
- $ vcmd .= ' --smc-check=all ' ;
3681
- }
3682
-
3683
- /* --vex-iropt-register-updates=allregs-at-mem-access is necessary for phpdbg watchpoint tests */
3684
- if ($ this ->version_3_8_0 ) {
3685
- return "$ vcmd --vex-iropt-register-updates=allregs-at-mem-access --log-file= $ memcheck_filename $ cmd " ;
3686
- }
3687
- return "$ vcmd --vex-iropt-precise-memory-exns=yes --log-file= $ memcheck_filename $ cmd " ;
3688
- }
3689
3669
}
3690
3670
3691
3671
class TestFile
0 commit comments