]> git.saurik.com Git - wxWidgets.git/commitdiff
check that the stream raises no error other than EOF when it's supposed to be at EOF
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Jul 2008 02:30:06 +0000 (02:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Jul 2008 02:30:06 +0000 (02:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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