diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-07-22 09:26:54 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-07-22 09:26:54 +0100 |
| commit | e245921978ee9c7c6e025c7416bdf808d789fa44 (patch) | |
| tree | 17a6c18cc1d0294f7e87d7c6638d4cc23f81b7e5 /test | |
| parent | d7e0ebee4d94f10a8b80c1e61bf7b162c6a1ac12 (diff) | |
Use locked_sstream.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.cc b/test/test.cc index 9cbfe14..3774a66 100644 --- a/test/test.cc +++ b/test/test.cc @@ -19,6 +19,7 @@ #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE libsub_test +#include <locked_sstream.h> #include <boost/test/unit_test.hpp> #include <boost/filesystem.hpp> #include <fstream> @@ -34,7 +35,6 @@ using std::max; using std::hex; using std::ifstream; using std::getline; -using std::stringstream; boost::filesystem::path private_test; @@ -106,7 +106,7 @@ check_file (boost::filesystem::path ref, boost::filesystem::path check) BOOST_CHECK_EQUAL (r, this_time); for (uintmax_t i = 0; i < this_time; ++i) { - stringstream s; + locked_stringstream s; s << "Files differ at offset " << (offset + i) << "; reference is " << hex << ((int) ref_buffer[i]) << ", check is " << hex << ((int) check_buffer[i]); |
