Skip to content

Commit b853201

Browse files
committed
run-tests.php: Preserve .php on leak in one more place
1 parent 6543d4b commit b853201

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run-tests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2751,7 +2751,7 @@ function run_test(string $php, $file, array $env): string
27512751
if (!strcmp($output, $wanted)) {
27522752
$passed = true;
27532753

2754-
if (!$cfg['keep']['php']) {
2754+
if (!$cfg['keep']['php'] && !$leaked) {
27552755
@unlink($test_file);
27562756
}
27572757
@unlink($tmp_post);

0 commit comments

Comments
 (0)