Boost logo

Boost-Commit :

From: technews_at_[hidden]
Date: 2008-01-02 00:51:50


Author: turkanis
Date: 2008-01-02 00:51:49 EST (Wed, 02 Jan 2008)
New Revision: 42412
URL: http://svn.boost.org/trac/boost/changeset/42412

Log:
commented out stream_state_test.cpp; this test seems to test the C++ standard library, rather than the iostreams library. In addition, I am not convinced that the standard requires the tests succeed; a number of standard libraries, including Dinkumware, fail this test
Text files modified:
   branches/iostreams_dev/libs/iostreams/test/stream_offset_64bit_test.cpp | 13 +++++++++++--
   1 files changed, 11 insertions(+), 2 deletions(-)

Modified: branches/iostreams_dev/libs/iostreams/test/stream_offset_64bit_test.cpp
==============================================================================
--- branches/iostreams_dev/libs/iostreams/test/stream_offset_64bit_test.cpp (original)
+++ branches/iostreams_dev/libs/iostreams/test/stream_offset_64bit_test.cpp 2008-01-02 00:51:49 EST (Wed, 02 Jan 2008)
@@ -13,6 +13,7 @@
  * with large (64-bit) file offsets.
  */
 
+#include <sstream>
 #include <boost/config.hpp> // BOOST_MSVC
 #include <boost/iostreams/positioning.hpp>
 #include <boost/test/test_tools.hpp>
@@ -37,8 +38,16 @@
     stream_offset last = large_file - large_file % 10000000;
 
     for (stream_offset off = first; off < last; off += 10000000)
- {
- BOOST_REQUIRE(off == position_to_offset(offset_to_position(off)));
+ {
+ if (off != position_to_offset(offset_to_position(off))) {
+ stringstream s;
+ s << "off != position_to_offset(offset_to_position(off)) "
+ "failed for off = 0x"
+ << hex
+ << (off >> 32)
+ << (off & 0xFFFFFFFF);
+ BOOST_REQUIRE_MESSAGE(0, s.str().c_str());
+ }
     }
 }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk