Flush the error log before performing the error log test, otherwise pending errors can throw the tests error count off

and cause it to improperly fail
This commit is contained in:
Chris Morgan
2006-09-27 02:47:52 +00:00
committed by WineHQ
parent d8fe952bb1
commit 74fb6b5bd8

View File

@@ -5,6 +5,8 @@ require_once(BASE."include/incl.php");
function test_error_log_log_error() function test_error_log_log_error()
{ {
error_log::flush(); /* flush the error log */
error_log::log_error(ERROR_SQL, "This is a sql error"); error_log::log_error(ERROR_SQL, "This is a sql error");
error_log::log_error(ERROR_GENERAL, "This is a general error"); error_log::log_error(ERROR_GENERAL, "This is a general error");
@@ -37,4 +39,4 @@ if(!test_error_log_log_error())
else else
echo "test_error_log_log_error() passed\n"; echo "test_error_log_log_error() passed\n";
?> ?>