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:
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
|