summaryrefslogtreecommitdiff
path: root/lib/common/Test.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common/Test.h')
-rw-r--r--lib/common/Test.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/common/Test.h b/lib/common/Test.h
index 9bc37270..9fb67f95 100644
--- a/lib/common/Test.h
+++ b/lib/common/Test.h
@@ -132,7 +132,10 @@ extern std::string bbackupd_args, bbstored_args, bbackupquery_args, test_args;
TEST_THAT(_condition); \
if (!(_condition)) \
{ \
- printf("Test failed on <%s>\n", _line.c_str()); \
+ std::ostringstream _ossl; \
+ _ossl << _line; \
+ std::string _line_str = _ossl.str(); \
+ printf("Test failed on <%s>\n", _line_str.c_str()); \
}
bool TestFileExists(const char *Filename);