Skip to content

Commit 31edca1

Browse files
committed
run-tests: removed unused code
1 parent cda67fb commit 31edca1

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";
@@ -3634,11 +3633,6 @@ class RuntestsValgrind
36343633
protected bool $version_3_8_0;
36353634
protected string $tool;
36363635

3637-
public function getHeader(): string
3638-
{
3639-
return $this->header;
3640-
}
3641-
36423636
public function __construct(array $environment, string $tool = 'memcheck')
36433637
{
36443638
$this->tool = $tool;
@@ -3655,20 +3649,6 @@ public function __construct(array $environment, string $tool = 'memcheck')
36553649
$this->header = sprintf("%s (%s)", trim($header), $this->tool);
36563650
$this->version_3_8_0 = version_compare($version, '3.8.0', '>=');
36573651
}
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-
}
36723652
}
36733653

36743654
class TestFile

0 commit comments

Comments
 (0)