RE: cppunit 1.8.0 issue
"Linder, Steve" <[email protected]> Mon, 16 Jun 2003 10:44:21 -0400
| Newsgroups | gmane.comp.lib.cppunit.devel |
|---|---|
| Message-ID | <052106A55179D611B34300096BB02E3F020F088B@usamcms4.mc.usa.xerox.com> |
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --Boundary_(ID_AKqC5oUlMeZ/b+FD3bUWVA) Content-type: text/plain; charset="iso-8859-1" Philippe, Thank-you for your reply. The g++ compiler that I am using did not have an exception flag, nor did it seem to have any similar flag. I have however verified that I am able to throw and catch c++ exceptions. I have tried to distill the problem further and have attached two different files (fail.cc and pass.cc) that demonstrate the problem that I have run into. In "fail.cc", CPPUNIT_ASSERT has bool parameter that is false and in "pass.cc" it is true. With these files are you able to recreate a core dump when "fail.cc" is run? Thanks, Steve -----Original Message----- From: Philippe Fremy [mailto:[email protected]] Sent: Monday, June 16, 2003 3:05 AM To: Linder, Steve Subject: Re: [Cppunit-devel] cppunit 1.8.0 issue On Friday 13 June 2003 22:30, Linder, Steve wrote: > Hi, > I am running into a problem with CPPUNIT_ASSERT. It runs fine if the > argument evaluates to true but core dumps if the argument evaluates to > false. Can you help me to get around this problem? I am running SunOS > 5.8 and a g+++ compiler. I had this problem once: I had forgotten to enable exception. You must compile with -exception. regards, PHilippe --Boundary_(ID_AKqC5oUlMeZ/b+FD3bUWVA) Content-type: application/octet-stream; name="fail.cc" Content-transfer-encoding: quoted-printable Content-disposition: attachment; filename="fail.cc" //complex_main0.cc=0A= =0A= #include <cppunit/TestAssert.h>=0A= =0A= int=0A= main ()=0A= {=0A= =0A= CPPUNIT_ASSERT( false ); =0A= }=0A= =0A= --Boundary_(ID_AKqC5oUlMeZ/b+FD3bUWVA) Content-type: application/octet-stream; name="pass.cc" Content-transfer-encoding: quoted-printable Content-disposition: attachment; filename="pass.cc" //complex_main0.cc=0A= =0A= #include <cppunit/TestAssert.h>=0A= =0A= int=0A= main ()=0A= {=0A= =0A= CPPUNIT_ASSERT( true ); =0A= }=0A= =0A= --Boundary_(ID_AKqC5oUlMeZ/b+FD3bUWVA)-- ------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5