From 1aee09e285548a4ebd76c9e1abc9af92b5cd5da6 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 6 Aug 2008 18:24:42 +0000 Subject: Allow passing C strings into TEST_FAIL_WITH_MESSAGE, not just string constants. --- lib/common/Test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/Test.h b/lib/common/Test.h index 5ac0d8ed..2e4eb6b5 100644 --- a/lib/common/Test.h +++ b/lib/common/Test.h @@ -41,7 +41,7 @@ extern std::string bbackupd_args, bbstored_args, bbackupquery_args, test_args; 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;} -- cgit v1.2.3