From 5bb46c2128a6e0b7c90e4fe64ef7c8e742cd94bc Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur Date: Sat, 13 Mar 2004 12:42:42 +0000 Subject: removed usage of std::exception ctor with a string (gcc 2.95 issue) --- examples/cppunittest/TestAssertTest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples/cppunittest/TestAssertTest.cpp') 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(); } -- cgit v1.2.1