com php-src: Delete temporary .post files of run-tests.php: run-tests.php

From: Date: Mon, 07 Oct 2019 10:17:41 +0000
Subject: com php-src: Delete temporary .post files of run-tests.php: run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-108758@lists.php.net to get a copy of this message
Commit: 53077217e2801f65dd3cb598f12aee2fa792742a Author: Christoph M. Becker <cmbecker69@gmx.de> Mon, 7 Oct 2019 12:13:02 +0200 Parents: 5b067163be6b6a3dd29970d81b32ff62b11934ee Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=53077217e2801f65dd3cb598f12aee2fa792742a Log: Delete temporary .post files of run-tests.php Commit 5649267[1] changed run-tests.php to only delete .post files for passing tests. However, that code wouldn't be exercised at all, since run_test() already returned, so we move the deletion upwards. [1] <http://git.php.net/?p=php-src.git;a=commit;h=5649267b257c78e46a934434c0bff894e0b5b694> Changed paths: M run-tests.php Diff: diff --git a/run-tests.php b/run-tests.php index 89525f518b2..909a8ea9b7b 100755 --- a/run-tests.php +++ b/run-tests.php @@ -2624,6 +2624,7 @@ COMMAND $cmd if (!$cfg['keep']['php']) { @unlink($test_file); } + @unlink($tmp_post); if (!$leaked && !$failed_headers) { if (isset($section_text['XFAIL'])) { @@ -2653,6 +2654,7 @@ COMMAND $cmd if (!$cfg['keep']['php']) { @unlink($test_file); } + @unlink($tmp_post); if (!$leaked && !$failed_headers) { if (isset($section_text['XFAIL'])) { @@ -2692,10 +2694,6 @@ COMMAND $cmd $restype[] = 'WARN'; } - if ($passed) { - @unlink($tmp_post); - } - if (!$passed) { if (isset($section_text['XFAIL'])) { $restype[] = 'XFAIL';

« previous php.cvs (#108758) next »