mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
MFH: fixed error messages
This commit is contained in:
parent
5b561a6df3
commit
e5bd8e32f5
@ -1219,17 +1219,17 @@ COMMAND $cmd
|
|||||||
if (!$passed) {
|
if (!$passed) {
|
||||||
// write .exp
|
// write .exp
|
||||||
if (strpos($log_format,'E') !== FALSE) {
|
if (strpos($log_format,'E') !== FALSE) {
|
||||||
file_put_contents($exp_filename, $wanted) or error("Cannot create test log - $exp_filename");
|
file_put_contents($exp_filename, $wanted) or error("Cannot create expected test output - $exp_filename");
|
||||||
}
|
}
|
||||||
|
|
||||||
// write .out
|
// write .out
|
||||||
if (strpos($log_format,'O') !== FALSE) {
|
if (strpos($log_format,'O') !== FALSE) {
|
||||||
file_put_contents($output_filename, $output) or error("Cannot create test log - $output_filename");
|
file_put_contents($output_filename, $output) or error("Cannot create test output - $output_filename");
|
||||||
}
|
}
|
||||||
|
|
||||||
// write .diff
|
// write .diff
|
||||||
if (strpos($log_format,'D') !== FALSE) {
|
if (strpos($log_format,'D') !== FALSE) {
|
||||||
file_put_contents($diff_filename, generate_diff($wanted,$wanted_re,$output)) or error("Cannot create test log - $diff_filename");
|
file_put_contents($diff_filename, generate_diff($wanted,$wanted_re,$output)) or error("Cannot create test diff - $diff_filename");
|
||||||
}
|
}
|
||||||
|
|
||||||
// write .log
|
// write .log
|
||||||
|
Loading…
Reference in New Issue
Block a user