Update of /cvsroot/cppunit/cppunit2/src/cpputtest
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29568/src/cpputtest
Modified Files:
testbasicassertion.cpp
Log Message:
* fixed portability issue (std::exception does not have a const char * constructor).
Index: testbasicassertion.cpp
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/src/cpputtest/testbasicassertion.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** testbasicassertion.cpp 20 Nov 2004 15:07:00 -0000 1.5
--- testbasicassertion.cpp 23 Feb 2005 21:42:59 -0000 1.6
***************
*** 1,4 ****
--- 1,5 ----
#include <cpput/assert.h>
#include <iostream>
+ #include <stdexcept>
***************
*** 8,12 ****
try
{
! CPPUT_ASSERT_THROW( throw std::exception( "dummy" ), std::exception );
}
catch ( ... )
--- 9,13 ----
try
{
! CPPUT_ASSERT_THROW( throw std::runtime_error( "dummy" ), std::runtime_error );
}
catch ( ... )
***************
*** 49,53 ****
try
{
! CPPUT_ASSERT_NO_THROW( throw std::exception( "dummy" ) );
std::cout << "Test 4: expected AbortingAssertionException "
"not thrown by CPPUT_ASSERT_THROW." << std::endl;
--- 50,54 ----
try
{
! CPPUT_ASSERT_NO_THROW( throw std::runtime_error( "dummy" ) );
std::cout << "Test 4: expected AbortingAssertionException "
"not thrown by CPPUT_ASSERT_THROW." << std::endl;
|