diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common/Test.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/common/Test.h b/lib/common/Test.h index 9fb67f95..f318c811 100644 --- a/lib/common/Test.h +++ b/lib/common/Test.h @@ -55,6 +55,8 @@ extern std::string bbackupd_args, bbstored_args, bbackupquery_args, test_args; { \ bool didthrow = false; \ HideExceptionMessageGuard hide; \ + BOX_TRACE("Exception logging disabled at " __FILE__ ":" \ + << __LINE__); \ try \ { \ statement; \ @@ -91,8 +93,8 @@ extern std::string bbackupd_args, bbstored_args, bbackupquery_args, test_args; \ if(_exp_str != _found_str) \ { \ - printf("Expected <%s> but found <%s>\n", \ - _exp_str.c_str(), _found_str.c_str()); \ + BOX_ERROR("Expected <" << _exp_str << "> but found <" << \ + _found_str << ">"); \ \ std::ostringstream _oss3; \ _oss3 << #_found << " != " << #_expected; \ |