ChangeSet ID: 28288 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner@winehq.org 2006/09/26 21:47:52
Modified files: unit_test : test_error_log.php
Log message: Chris Morgan cmorgan@alum.wpi.edu 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
Patch: http://cvs.winehq.org/patch.py?id=28288
Old revision New revision Changes Path 1.1 1.2 +3 -1 appdb/unit_test/test_error_log.php
Index: appdb/unit_test/test_error_log.php diff -u -p appdb/unit_test/test_error_log.php:1.1 appdb/unit_test/test_error_log.php:1.2 --- appdb/unit_test/test_error_log.php:1.1 27 Sep 2006 2:47:52 -0000 +++ appdb/unit_test/test_error_log.php 27 Sep 2006 2:47:52 -0000 @@ -5,6 +5,8 @@ require_once(BASE."include/incl.php");
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_GENERAL, "This is a general error");
@@ -37,4 +39,4 @@ if(!test_error_log_log_error()) else echo "test_error_log_log_error() passed\n";
-?> \ No newline at end of file +?>