No idea if this is really a CppUnit problem but if anyone has
tried CppUnit 1.10.2 on Mac OSX 10.3.9 Panther (PPC G4) and encountered this, or even found a workaround I'd be pleased to hear.
and the program hangs until I interrupt it.
FYI, I'm using
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1666).
Backtrace in gcc suggests a problem in exception handling.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No idea if this is really a CppUnit problem but if anyone has
tried CppUnit 1.10.2 on Mac OSX 10.3.9 Panther (PPC G4) and encountered this, or even found a workaround I'd be pleased to hear.
I copied the "Hello World" for CppUnit from
http://pantras.free.fr/articles/helloworld.html
and replaced the test with
void Test::testHelloWorld()
{
CPPUNIT_ASSERT_EQUAL(std::string("HELLO"),std::string("hello"));
}
in order to generate an error message.
If I compile as follows:
oag$ g++ -g cppunithw.cc -lcppunit
oag$ ./a.out
Test::testHelloWorld : assertion
oag$
all is well. However in my actual project I need to use
features of libstdc++ so I have to compile with libgcc_s.1.
So:
oag$ g++ -g cppunithw.cc -lcppunit -lgcc_s.1
oag$ ./a.out
Test::testHelloWorldSegmentation fault
and the program hangs until I interrupt it.
FYI, I'm using
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1666).
Backtrace in gcc suggests a problem in exception handling.