From: Vadim Zeitlin Date: Sat, 12 Jul 2008 02:30:06 +0000 (+0000) Subject: check that the stream raises no error other than EOF when it's supposed to be at EOF X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bf451723ca6fbb476745278c2ec9b7b4e7f05c0d check that the stream raises no error other than EOF when it's supposed to be at EOF git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/streams/bstream.h b/tests/streams/bstream.h index 3ca1bf8030..c3893d73e5 100644 --- a/tests/streams/bstream.h +++ b/tests/streams/bstream.h @@ -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