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

boxbackup-dev@fluffy.co.uk boxbackup-dev@fluffy.co.uk
Mon, 11 Aug 2008 10:34:51 +0100 (BST)


Author: chris
Date: 2008-08-11 10:34:50 +0100 (Mon, 11 Aug 2008)
New Revision: 2238

Modified:
   box/trunk/lib/common/Test.h
Log:
Make test failures more obvious, and log them through logging framework.


Modified: box/trunk/lib/common/Test.h
===================================================================
--- box/trunk/lib/common/Test.h	2008-08-10 22:04:03 UTC (rev 2237)
+++ box/trunk/lib/common/Test.h	2008-08-11 09:34:50 UTC (rev 2238)
@@ -41,7 +41,8 @@
 		first_fail_line = __LINE__; \
 	} \
 	failures++; \
-	printf("FAILURE: %s at " __FILE__ ":%d\n", msg, __LINE__); \
+	BOX_ERROR("**** TEST FAILURE: " << msg << " at " << __FILE__ << \
+		":" << __LINE__); \
 }
 
 #define TEST_ABORT_WITH_MESSAGE(msg) {TEST_FAIL_WITH_MESSAGE(msg); return 1;}