diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-10-07 12:13:02 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-10-07 12:17:41 +0200 |
commit | 53077217e2801f65dd3cb598f12aee2fa792742a (patch) | |
tree | 8feb7e0b28a98a0e8f1f19629c66851b7d138c9a /run-tests.php | |
parent | 5b067163be6b6a3dd29970d81b32ff62b11934ee (diff) | |
download | php-git-53077217e2801f65dd3cb598f12aee2fa792742a.tar.gz |
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>
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/run-tests.php b/run-tests.php index 89525f518b..909a8ea9b7 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'; |