1 #ifndef TESTS_EXCEPTION_HXX
2 #define TESTS_EXCEPTION_HXX
4 #include <cppunit/extensions/HelperMacros.h>
11 class tests::Exception
: public CppUnit::TestFixture
13 CPPUNIT_TEST_SUITE(Exception
);
14 CPPUNIT_TEST(testCopyingOfShortMessage
);
15 CPPUNIT_TEST(testWhetherLongMessageDoesNotOverflow
);
16 CPPUNIT_TEST(testWhetherPreviousExceptionIsCloned
);
17 CPPUNIT_TEST(testWhetherClonedExceptionIsDeleted
);
18 CPPUNIT_TEST(testWhetherBadAllocOnCloneIsSwallowed
);
19 CPPUNIT_TEST(testWhetherNoticeIsAppendedOnBadAlloc
);
20 CPPUNIT_TEST(testWhetherNoticeDoesNotOverflowIfBufferTooSmall
);
21 CPPUNIT_TEST(testWritingToStream
);
22 CPPUNIT_TEST(testBacktrace
);
23 CPPUNIT_TEST_SUITE_END();
26 void testCopyingOfShortMessage();
27 void testWhetherLongMessageDoesNotOverflow();
28 void testWhetherPreviousExceptionIsCloned();
29 void testWhetherClonedExceptionIsDeleted();
30 void testWhetherBadAllocOnCloneIsSwallowed();
31 void testWhetherNoticeIsAppendedOnBadAlloc();
32 void testWhetherNoticeDoesNotOverflowIfBufferTooSmall();
33 void testWritingToStream();