summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrun-tests.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php
index e6ed2a169e..7a66370c39 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -2751,7 +2751,7 @@ COMMAND $cmd
if (!strcmp($output, $wanted)) {
$passed = true;
- if (!$cfg['keep']['php']) {
+ if (!$cfg['keep']['php'] && !$leaked) {
@unlink($test_file);
}
@unlink($tmp_post);