From a43e9b2bafa02171d21bc9b12015b8f34479464f Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 30 Aug 2016 19:59:24 +0200 Subject: [PATCH] Fix BitReader test --- tests/iotests.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/iotests.cpp b/tests/iotests.cpp index 9be71f7..d523239 100644 --- a/tests/iotests.cpp +++ b/tests/iotests.cpp @@ -216,7 +216,12 @@ void IoTests::testBitReader() CPPUNIT_ASSERT(reader.readSignedExpGolombCodedBits() == 4); CPPUNIT_ASSERT(reader.readBit() == 0); CPPUNIT_ASSERT(reader.readBit() == 0); - CPPUNIT_ASSERT_THROW(reader.readBit(), std::ios_base::failure); + try { + reader.readBit(); + } catch(...) { + catchIoFailure(); + } + } /*!