]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/streams/bstream.h
fix assert failure if NULL size pointer was passed to Request() (as happened in the...
[wxWidgets.git] / tests / streams / bstream.h
index 3ca1bf8030d6e540a99a2eedc7fd6246c585c955..c3893d73e54f301cdaec85ffc83e36387a4b408c 100644 (file)
@@ -135,6 +135,9 @@ protected:
         // Travel to the end of the stream.
         while(!stream_in.Eof())
         {
+            CPPUNIT_ASSERT_MESSAGE( "unexpected non-EOF stream error",
+                                    stream_in.IsOk() );
+
             // Read, we move one byte along.
             (void)stream_in.GetC();
 #if 0