From ea679c10c03b9803e43126e224225ebdf2ba09d0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 11 Aug 2016 15:01:49 +0100 Subject: Remove unnecessary include. --- test/test.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/test.cc b/test/test.cc index c17f1506..44f519c0 100644 --- a/test/test.cc +++ b/test/test.cc @@ -21,7 +21,6 @@ #define BOOST_TEST_MODULE libdcp_test #include "util.h" #include "test.h" -#include #include #include #include @@ -123,8 +122,8 @@ check_file (boost::filesystem::path ref, boost::filesystem::path check) uint8_t* ref_buffer = new uint8_t[buffer_size]; uint8_t* check_buffer = new uint8_t[buffer_size]; - locked_stringstream error; - error << "File " << check.string() << " differs from reference " << ref.string(); + string error; + error = "File " + check.string() + " differs from reference " + ref.string(); while (N) { uintmax_t this_time = min (uintmax_t (buffer_size), N); @@ -133,7 +132,7 @@ check_file (boost::filesystem::path ref, boost::filesystem::path check) r = fread (check_buffer, 1, this_time, check_file); BOOST_CHECK_EQUAL (r, this_time); - BOOST_CHECK_MESSAGE (memcmp (ref_buffer, check_buffer, this_time) == 0, error.str ()); + BOOST_CHECK_MESSAGE (memcmp (ref_buffer, check_buffer, this_time) == 0, error); if (memcmp (ref_buffer, check_buffer, this_time)) { break; } -- cgit v1.2.3