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(); + } + } /*!