diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-08-11 09:34:50 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-08-11 09:34:50 +0000 |
commit | 2eb6ac54316458f7e60d3c73dd23d2cb3cce3c3d (patch) | |
tree | 54ae0f3a6bf70e262f0096a3efe666792db3ac97 /lib/common/Test.h | |
parent | 3cb407162850dc84b91a68ee7bab9446c132d1f1 (diff) |
Make test failures more obvious, and log them through logging framework.
Diffstat (limited to 'lib/common/Test.h')
-rw-r--r-- | lib/common/Test.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/common/Test.h b/lib/common/Test.h index 64acfade..fa3dcc83 100644 --- a/lib/common/Test.h +++ b/lib/common/Test.h @@ -41,7 +41,8 @@ extern std::string bbackupd_args, bbstored_args, bbackupquery_args, test_args; 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;} |