Update of /cvsroot/cppunit/cppunit/examples/cppunittest
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27874/examples/cppunittest
Modified Files:
MockTestCase.cpp OrthodoxTest.h XmlOutputterTest.cpp
assertion_traitsTest.cpp
Log Message:
Changes to suppress warnings of gcc -Wall -W -ansi, mainly from patch [1898225].
Index: assertion_traitsTest.cpp
===================================================================
RCS file: /cvsroot/cppunit/cppunit/examples/cppunittest/assertion_traitsTest.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** assertion_traitsTest.cpp 31 Jan 2007 05:27:07 -0000 1.1
--- assertion_traitsTest.cpp 21 Feb 2008 03:10:04 -0000 1.2
***************
*** 16,20 ****
{
CPPUNIT_ASSERT_EQUAL( std::string( "abc" ),
! CPPUNIT_NS::assertion_traits<char*>::toString( "abc" ) );
CPPUNIT_ASSERT_EQUAL( std::string( "33" ),
--- 16,20 ----
{
CPPUNIT_ASSERT_EQUAL( std::string( "abc" ),
! CPPUNIT_NS::assertion_traits<const char*>::toString( "abc" ) );
CPPUNIT_ASSERT_EQUAL( std::string( "33" ),
Index: MockTestCase.cpp
===================================================================
RCS file: /cvsroot/cppunit/cppunit/examples/cppunittest/MockTestCase.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** MockTestCase.cpp 13 Jul 2002 10:33:49 -0000 1.6
--- MockTestCase.cpp 21 Feb 2008 03:10:04 -0000 1.7
***************
*** 113,117 ****
void
! MockTestCase::setExpectedTearDownCall( int callCount )
{
}
--- 113,117 ----
void
! MockTestCase::setExpectedTearDownCall( int )
{
}
Index: XmlOutputterTest.cpp
===================================================================
RCS file: /cvsroot/cppunit/cppunit/examples/cppunittest/XmlOutputterTest.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** XmlOutputterTest.cpp 12 Jan 2007 05:56:34 -0000 1.14
--- XmlOutputterTest.cpp 21 Feb 2008 03:10:04 -0000 1.15
***************
*** 239,269 ****
}
! void beginDocument( CPPUNIT_NS::XmlDocument *document )
{
++m_beginCalls;
}
! void endDocument( CPPUNIT_NS::XmlDocument *document )
{
++m_endCalls;
}
! void failTestAdded( CPPUNIT_NS::XmlDocument *document,
! CPPUNIT_NS::XmlElement *testElement,
! CPPUNIT_NS::Test *test,
! CPPUNIT_NS::TestFailure *failure )
{
++m_failedTestCalls;
}
! void successfulTestAdded( CPPUNIT_NS::XmlDocument *document,
! CPPUNIT_NS::XmlElement *testElement,
! CPPUNIT_NS::Test *test )
{
++m_successfulTestCalls;
}
! void statisticsAdded( CPPUNIT_NS::XmlDocument *document,
! CPPUNIT_NS::XmlElement *statisticsElement )
{
++m_statisticsCalls;
--- 239,269 ----
}
! void beginDocument( CPPUNIT_NS::XmlDocument * )
{
++m_beginCalls;
}
! void endDocument( CPPUNIT_NS::XmlDocument * )
{
++m_endCalls;
}
! void failTestAdded( CPPUNIT_NS::XmlDocument *,
! CPPUNIT_NS::XmlElement *,
! CPPUNIT_NS::Test *,
! CPPUNIT_NS::TestFailure * )
{
++m_failedTestCalls;
}
! void successfulTestAdded( CPPUNIT_NS::XmlDocument *,
! CPPUNIT_NS::XmlElement *,
! CPPUNIT_NS::Test * )
{
++m_successfulTestCalls;
}
! void statisticsAdded( CPPUNIT_NS::XmlDocument *,
! CPPUNIT_NS::XmlElement * )
{
++m_statisticsCalls;
Index: OrthodoxTest.h
===================================================================
RCS file: /cvsroot/cppunit/cppunit/examples/cppunittest/OrthodoxTest.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** OrthodoxTest.h 13 Jul 2002 10:33:49 -0000 1.7
--- OrthodoxTest.h 21 Feb 2008 03:10:04 -0000 1.8
***************
*** 134,138 ****
ValueBadCall( int value =0 ) : Value( value ) {}
! ValueBadCall( const ValueBadCall &other )
{
static int serialNumber = 0;
--- 134,138 ----
ValueBadCall( int value =0 ) : Value( value ) {}
! ValueBadCall( const ValueBadCall & ) : Value()
{
static int serialNumber = 0;
***************
*** 157,161 ****
}
! ValueBadAssignment &operator =( const ValueBadAssignment &other )
{
++m_value;
--- 157,161 ----
}
! ValueBadAssignment &operator =( const ValueBadAssignment & )
{
++m_value;
|