diff options
-rw-r--r-- | lib/common/Test.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/common/Test.h b/lib/common/Test.h index db93a21e..f96280c2 100644 --- a/lib/common/Test.h +++ b/lib/common/Test.h @@ -113,7 +113,9 @@ extern std::string bbackupd_args, bbstored_args, bbackupquery_args, test_args; \ if(_exp_str != _found_str) \ { \ - std::string _line_str = _line; \ + std::ostringstream _ossl; \ + _ossl << _line; \ + std::string _line_str = _ossl.str(); \ printf("Expected <%s> but found <%s> in <%s>\n", \ _exp_str.c_str(), _found_str.c_str(), _line_str.c_str()); \ \ |