From: Levi Morrison Date: Thu, 25 Jul 2019 15:48:29 +0000 (-0600) Subject: Remove .post files only for passing tests X-Git-Tag: php-7.4.0beta2~40^2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5649267;p=php Remove .post files only for passing tests This allows the sh script for failing tests with --POST-- to work --- diff --git a/run-tests.php b/run-tests.php index d5638aad99..c5f09fa8aa 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1994,8 +1994,6 @@ COMMAND $cmd } } - @unlink($tmp_post); - $leaked = false; $passed = false; @@ -2207,6 +2205,10 @@ COMMAND $cmd $restype[] = 'WARN'; } + if ($passed) { + @unlink($tmp_post); + } + if (!$passed) { if (isset($section_text['XFAIL'])) { $restype[] = 'XFAIL';