[Box Backup-commit] COMMIT r2503 - box/trunk/lib/common

boxbackup-dev at boxbackup.org boxbackup-dev at boxbackup.org
Mon Apr 13 19:39:03 BST 2009


Author: chris
Date: 2009-04-13 19:39:02 +0100 (Mon, 13 Apr 2009)
New Revision: 2503

Modified:
   box/trunk/lib/common/Test.h
Log:
Log unexpected test results using logging framework rather than printf.


Modified: box/trunk/lib/common/Test.h
===================================================================
--- box/trunk/lib/common/Test.h	2009-04-10 09:29:37 UTC (rev 2502)
+++ box/trunk/lib/common/Test.h	2009-04-13 18:39:02 UTC (rev 2503)
@@ -90,8 +90,8 @@
 	\
 	if(_exp_str != _found_str) \
 	{ \
-		printf("Expected <%s> but found <%s>\n", \
-			_exp_str.c_str(), _found_str.c_str()); \
+		BOX_WARNING("Expected <" << _exp_str << "> but found <" << \
+			_found_str << ">"); \
 		\
 		std::ostringstream _oss3; \
 		_oss3 << #_found << " != " << #_expected; \




More information about the Boxbackup-commit mailing list