Why does CppUnit give me seg faults?
I've narrowed the seg fault down to 3 lines of code that I've commented out below. If I uncomment any of these lines I get a seg fault.
This is the first time I've tried using CppUnit, so I'm probably not using it right...
int main( int argc, char* argv )
if ( argc != 3 )
std::cerr << "Usage: sample <host> <port>" << std::endl;
/// Create a new TestSuite & add the sample test.
CppUnit::TestSuite testSuite( "Sample Test" );
SampleTest sampleTest( argv, argv );
// testSuite.addTest( &sampleTest );
/// Adds the test to the list of test to run
CppUnit::XmlOutputter xmlOutput( &runner.result(), std::cerr );
// runner.setOutputter( &xmlOutput );
// runner.addTest( &testSuite );
Want to know the usage of cppunit library
Originally Posted by laserlight
I want to use CPPUNIT for C programming unit testing? where i will get complete information about its usage? i am completely new to this kind of stuff.
Thanks in advance for your help.