From: Nikita Popov Date: Thu, 4 Mar 2021 15:08:53 +0000 (+0100) Subject: run-tests.php: Preserve .php on leak in one more place X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b853201a6d201da692b83b7d986170a2bcc989e8;p=php run-tests.php: Preserve .php on leak in one more place --- 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);