Updated .gitignore.
[libsex.git] / tests / src / TestException.hxx
blob989d1771a57affd1b1c3816a45c4ba72b0bf0c7a
1 #ifndef TESTEXCEPTION_HXX
2 #define TESTEXCEPTION_HXX
4 #include <cppunit/extensions/HelperMacros.h>
6 class TestException : public CppUnit::TestFixture
8 CPPUNIT_TEST_SUITE(TestException);
9 CPPUNIT_TEST(testCopyingOfShortMessage);
10 CPPUNIT_TEST(testWhetherLongMessageDoesNotOverflow);
11 CPPUNIT_TEST(testWhetherPreviousExceptionIsCloned);
12 CPPUNIT_TEST(testWhetherClonedExceptionIsDeleted);
13 CPPUNIT_TEST(testWhetherBadAllocOnCloneIsSwallowed);
14 CPPUNIT_TEST(testWhetherNoticeIsAppendedOnBadAlloc);
15 CPPUNIT_TEST(testWhetherNoticeDoesNotOverflowIfBufferTooSmall);
16 CPPUNIT_TEST(testWritingToStream);
17 CPPUNIT_TEST(testBacktrace);
18 CPPUNIT_TEST_SUITE_END();
20 public:
21 void testCopyingOfShortMessage();
22 void testWhetherLongMessageDoesNotOverflow();
23 void testWhetherPreviousExceptionIsCloned();
24 void testWhetherClonedExceptionIsDeleted();
25 void testWhetherBadAllocOnCloneIsSwallowed();
26 void testWhetherNoticeIsAppendedOnBadAlloc();
27 void testWhetherNoticeDoesNotOverflowIfBufferTooSmall();
28 void testWritingToStream();
29 void testBacktrace();
32 #endif