summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorLevi Morrison <levim@php.net>2019-07-25 09:49:18 -0600
committerLevi Morrison <levim@php.net>2019-07-25 09:49:18 -0600
commitc624a7fe43728f9d74e23c43bbbf6b45097cdd22 (patch)
tree1c3af5206ed7b214e31186cb15fc70bd0f3274e6 /run-tests.php
parentb42a13b08ae59e686dafcd70eac37c917b1a6792 (diff)
parent5649267b257c78e46a934434c0bff894e0b5b694 (diff)
downloadphp-git-c624a7fe43728f9d74e23c43bbbf6b45097cdd22.tar.gz
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2: Remove .post files only for passing tests
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/run-tests.php b/run-tests.php
index 5f8055d2f3..b2cab41133 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -1971,8 +1971,6 @@ COMMAND $cmd
}
}
- @unlink($tmp_post);
-
$leaked = false;
$passed = false;
@@ -2164,6 +2162,10 @@ COMMAND $cmd
$restype[] = 'WARN';
}
+ if ($passed) {
+ @unlink($tmp_post);
+ }
+
if (!$passed) {
if (isset($section_text['XFAIL'])) {
$restype[] = 'XFAIL';