Skip to content

Commit 5649267

Browse files
committed
Remove .post files only for passing tests
This allows the sh script for failing tests with --POST-- to work
1 parent 8f384be commit 5649267

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

run-tests.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,8 +1994,6 @@ function run_test($php, $file, $env)
19941994
}
19951995
}
19961996

1997-
@unlink($tmp_post);
1998-
19991997
$leaked = false;
20001998
$passed = false;
20011999

@@ -2207,6 +2205,10 @@ function run_test($php, $file, $env)
22072205
$restype[] = 'WARN';
22082206
}
22092207

2208+
if ($passed) {
2209+
@unlink($tmp_post);
2210+
}
2211+
22102212
if (!$passed) {
22112213
if (isset($section_text['XFAIL'])) {
22122214
$restype[] = 'XFAIL';

0 commit comments

Comments
 (0)