[Box Backup-commit] COMMIT r2218 - box/trunk/lib/common
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Wed Aug 6 19:24:42 BST 2008
Author: chris
Date: 2008-08-06 19:24:42 +0100 (Wed, 06 Aug 2008)
New Revision: 2218
Modified:
box/trunk/lib/common/Test.h
Log:
Allow passing C strings into TEST_FAIL_WITH_MESSAGE, not just string constants.
Modified: box/trunk/lib/common/Test.h
===================================================================
--- box/trunk/lib/common/Test.h 2008-08-06 18:23:10 UTC (rev 2217)
+++ box/trunk/lib/common/Test.h 2008-08-06 18:24:42 UTC (rev 2218)
@@ -41,7 +41,7 @@
first_fail_line = __LINE__; \
} \
failures++; \
- printf("FAILURE: " msg " at " __FILE__ "(%d)\n", __LINE__); \
+ printf("FAILURE: %s at " __FILE__ ":%d\n", msg, __LINE__); \
}
#define TEST_ABORT_WITH_MESSAGE(msg) {TEST_FAIL_WITH_MESSAGE(msg); return 1;}
More information about the Boxbackup-commit
mailing list