From bf451723ca6fbb476745278c2ec9b7b4e7f05c0d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 12 Jul 2008 02:30:06 +0000 Subject: [PATCH] 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 --- tests/streams/bstream.h | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.50.0