@@ -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" ;
@@ -3634,11 +3633,6 @@ class RuntestsValgrind
3634
3633
protected bool $ version_3_8_0 ;
3635
3634
protected string $ tool ;
3636
3635
3637
- public function getHeader (): string
3638
- {
3639
- return $ this ->header ;
3640
- }
3641
-
3642
3636
public function __construct (array $ environment , string $ tool = 'memcheck ' )
3643
3637
{
3644
3638
$ this ->tool = $ tool ;
@@ -3655,20 +3649,6 @@ public function __construct(array $environment, string $tool = 'memcheck')
3655
3649
$ this ->header = sprintf ("%s (%s) " , trim ($ header ), $ this ->tool );
3656
3650
$ this ->version_3_8_0 = version_compare ($ version , '3.8.0 ' , '>= ' );
3657
3651
}
3658
-
3659
- public function wrapCommand (string $ cmd , string $ memcheck_filename , bool $ check_all ): string
3660
- {
3661
- $ vcmd = "valgrind -q --tool= {$ this ->tool } --trace-children=yes " ;
3662
- if ($ check_all ) {
3663
- $ vcmd .= ' --smc-check=all ' ;
3664
- }
3665
-
3666
- /* --vex-iropt-register-updates=allregs-at-mem-access is necessary for phpdbg watchpoint tests */
3667
- if ($ this ->version_3_8_0 ) {
3668
- return "$ vcmd --vex-iropt-register-updates=allregs-at-mem-access --log-file= $ memcheck_filename $ cmd " ;
3669
- }
3670
- return "$ vcmd --vex-iropt-precise-memory-exns=yes --log-file= $ memcheck_filename $ cmd " ;
3671
- }
3672
3652
}
3673
3653
3674
3654
class TestFile
0 commit comments