Skip to content

Commit e7dfb34

Browse files
committed
run-tests: removed unused code
1 parent 2b10cd1 commit e7dfb34

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

run-tests.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,6 @@ function main(): void
693693
if ($test_cnt) {
694694
putenv('NO_INTERACTION=1');
695695
usort($test_files, "test_sort");
696-
$start_timestamp = time();
697696
$start_time = hrtime(true);
698697

699698
echo "Running selected tests.\n";
@@ -3651,11 +3650,6 @@ class RuntestsValgrind
36513650
protected bool $version_3_8_0;
36523651
protected string $tool;
36533652

3654-
public function getHeader(): string
3655-
{
3656-
return $this->header;
3657-
}
3658-
36593653
public function __construct(array $environment, string $tool = 'memcheck')
36603654
{
36613655
$this->tool = $tool;
@@ -3672,20 +3666,6 @@ public function __construct(array $environment, string $tool = 'memcheck')
36723666
$this->header = sprintf("%s (%s)", trim($header), $this->tool);
36733667
$this->version_3_8_0 = version_compare($version, '3.8.0', '>=');
36743668
}
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-
}
36893669
}
36903670

36913671
class TestFile

0 commit comments

Comments
 (0)