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>
if (!$cfg['keep']['php']) {
@unlink($test_file);
}
+ @unlink($tmp_post);
if (!$leaked && !$failed_headers) {
if (isset($section_text['XFAIL'])) {
if (!$cfg['keep']['php']) {
@unlink($test_file);
}
+ @unlink($tmp_post);
if (!$leaked && !$failed_headers) {
if (isset($section_text['XFAIL'])) {
$restype[] = 'WARN';
}
- if ($passed) {
- @unlink($tmp_post);
- }
-
if (!$passed) {
if (isset($section_text['XFAIL'])) {
$restype[] = 'XFAIL';