diff options
| author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2004-03-13 12:42:42 +0000 |
|---|---|---|
| committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2004-03-13 12:42:42 +0000 |
| commit | 5bb46c2128a6e0b7c90e4fe64ef7c8e742cd94bc (patch) | |
| tree | 6b786617b50cc6693088b5ccfe94c0c28a0c0a55 /examples/cppunittest/TestAssertTest.cpp | |
| parent | 224cf85f2b7fd7ec47cda4788902996349f8c754 (diff) | |
| download | cppunit-5bb46c2128a6e0b7c90e4fe64ef7c8e742cd94bc.tar.gz | |
removed usage of std::exception ctor with a string (gcc 2.95 issue)
Diffstat (limited to 'examples/cppunittest/TestAssertTest.cpp')
| -rw-r--r-- | examples/cppunittest/TestAssertTest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/cppunittest/TestAssertTest.cpp b/examples/cppunittest/TestAssertTest.cpp index 9481184..c65d97b 100644 --- a/examples/cppunittest/TestAssertTest.cpp +++ b/examples/cppunittest/TestAssertTest.cpp @@ -41,7 +41,7 @@ TestAssertTest::tearDown() void TestAssertTest::testAssertThrow() { - CPPUNIT_ASSERT_THROW( throw std::exception( "dummy" ), std::exception ); + CPPUNIT_ASSERT_THROW( throw std::exception(), std::exception ); try { @@ -52,7 +52,7 @@ TestAssertTest::testAssertThrow() return; } - throw std::exception( "CPPUT_ASSERT_THROW( 1234, std::exception ) did not fail." ); + throw std::exception(); } @@ -63,13 +63,13 @@ TestAssertTest::testAssertNoThrow() try { - CPPUNIT_ASSERT_NO_THROW( throw std::exception( "dummy" ) ); + CPPUNIT_ASSERT_NO_THROW( throw std::exception() ); } catch ( CPPUNIT_NS::Exception & ) { return; } - throw std::exception( "CPPUT_ASSERT_NO_THROW( throw std::exception( \"dummy\" ) ) did not fail." ); + throw std::exception(); } @@ -87,7 +87,7 @@ TestAssertTest::testAssertAssertionFail() return; } - throw std::exception( "CPPUNIT_ASSERT_ASSERTION_FAIL( 1234 ) did not fail." ); + throw std::exception(); } @@ -105,7 +105,7 @@ TestAssertTest::testAssertAssertionPass() return; } - throw std::exception( "CPPUNIT_ASSERT_ASSERTION_PASS did not fail." ); + throw std::exception(); } |
