diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-08-06 18:24:42 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-08-06 18:24:42 +0000 |
commit | 1aee09e285548a4ebd76c9e1abc9af92b5cd5da6 (patch) | |
tree | 21c6971a8e77e341c90ded3a94c2984a42857f20 /lib/common | |
parent | 4acc922f4d5e9f12854ed74d246ddc585569df5c (diff) |
Allow passing C strings into TEST_FAIL_WITH_MESSAGE, not just string constants.
Diffstat (limited to 'lib/common')
-rw-r--r-- | lib/common/Test.h | 2 |
1 files changed, 1 insertions, 1 deletions
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;} |