mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
- Made tests that require CGI skipped if it is not available
This commit is contained in:
parent
e14cdc034e
commit
8f45f83124
@ -846,6 +846,7 @@ TEST $file
|
||||
'TEST' => '',
|
||||
'SKIPIF' => '',
|
||||
'GET' => '',
|
||||
'POST' => '',
|
||||
'ARGS' => '',
|
||||
);
|
||||
|
||||
@ -920,17 +921,20 @@ TEST $file
|
||||
return 'BORKED';
|
||||
}
|
||||
|
||||
$shortname = str_replace($cwd.'/', '', $file);
|
||||
$tested = trim($section_text['TEST'])." [$shortname]";
|
||||
|
||||
/* For GET/POST tests, check if cgi sapi is available and if it is, use it. */
|
||||
if ((!empty($section_text['GET']) || !empty($section_text['POST']))) {
|
||||
if (file_exists("./sapi/cgi/php")) {
|
||||
$old_php = $php;
|
||||
$php = realpath("./sapi/cgi/php") . ' -C ';
|
||||
}
|
||||
} else {
|
||||
show_result("SKIP", $tested, $file, "reason: CGI not available");
|
||||
return 'SKIPPED';
|
||||
}
|
||||
}
|
||||
|
||||
$shortname = str_replace($cwd.'/', '', $file);
|
||||
$tested = trim($section_text['TEST'])." [$shortname]";
|
||||
|
||||
show_test($test_idx, $shortname);
|
||||
|
||||
if (is_array($IN_REDIRECT)) {
|
||||
|
Loading…
Reference in New Issue
Block a user