Re: [Cppunit-devel] global object detector broken
Brought to you by:
blep
|
From: CppUnit d. m. l. <cpp...@li...> - 2007-02-25 09:42:22
|
CppUnit development mailing list wrote:
> Hello,
>
> I currently have my test driver code declared in in a .h file, the
> following code is said to have a global, but clearly does not:
I can't figure out what you are talking about. What global and detector are
you talking about ?
> void UMDIOTraceTest::testHasMoreRecords()
> {
> // Test with a valid trace
> UMDIOTrace test(1, "tests/support/umd_io_trace.tra");
> for (int i = 0; i < 10; i++)
> {
> CPPUNIT_ASSERT(true == test.hasMoreRecords());
> test.nextRecordAsMessage();
> }
>
> CPPUNIT_ASSERT(false == test.hasMoreRecords());
> }
>
> I think simply because the variable is in the header file (i.e.
> inline), your detector must be getting confused.
>
> Cheers,
> Brad
---
Baptiste Lepilleur <bl...@us...>
CppUnit maintainer
OpenTest and CppUnit 2 developer.
|