Yes it is a bug. Your work around is correct.
Thanks for pointing this out. I'm currently reworking this area as you may
have noticed. I haven't managed to free the time to write the test yet (hope
this will be soon).
And I do like the compiler outputter a lot. Haven't use the GUI based
TestRunner in a loong time.
Baptiste.
----- Original Message -----
From: "Michael Lacher" <mic...@ge...>
To: <cpp...@li...>
Sent: Thursday, July 25, 2002 3:23 PM
Subject: [Cppunit-devel] SourceLine not correctly piped through
> Hi!
>
> I just downloaded and installed CppUnit from CVS and it seems that the
> SourceLine feature doesn't work correctly (the source line informatino
> gets lost somewhere and the Outputter doesn't print it).
>
> I think I tracked the problem down to a bug:
> In DefaultProtector::protect() the caught Exception message is passed on
> to reportTestFailure() but not the source line.
> I added an overload of reportTestFailure with an extra param for the
> source line and added the parameter to the call in DefaultProtector. Now
> everything works fine.
>
> Is this a bug ? or did I somehow missuse the library and the sourceline
> should get passed along in a different manner ?
>
> regards
> Michael
>
> P.S: the idea with the CompilerOutputter and to add the program as its
> own post-build step is great !!
|