Skip to content

Commit c624a7f

Browse files
committed
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2: Remove .post files only for passing tests
2 parents b42a13b + 5649267 commit c624a7f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

run-tests.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1971,8 +1971,6 @@ function run_test($php, $file, $env)
19711971
}
19721972
}
19731973

1974-
@unlink($tmp_post);
1975-
19761974
$leaked = false;
19771975
$passed = false;
19781976

@@ -2164,6 +2162,10 @@ function run_test($php, $file, $env)
21642162
$restype[] = 'WARN';
21652163
}
21662164

2165+
if ($passed) {
2166+
@unlink($tmp_post);
2167+
}
2168+
21672169
if (!$passed) {
21682170
if (isset($section_text['XFAIL'])) {
21692171
$restype[] = 'XFAIL';

0 commit comments

Comments
 (0)