summaryrefslogtreecommitdiff
path: root/lib/common/Test.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-08-11 09:34:50 +0000
committerChris Wilson <chris+github@qwirx.com>2008-08-11 09:34:50 +0000
commit2eb6ac54316458f7e60d3c73dd23d2cb3cce3c3d (patch)
tree54ae0f3a6bf70e262f0096a3efe666792db3ac97 /lib/common/Test.h
parent3cb407162850dc84b91a68ee7bab9446c132d1f1 (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.h3
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;}