[Cppunit-devel] global object detector broken
Brought to you by:
blep
From: CppUnit d. m. l. <cpp...@li...> - 2007-02-22 21:31:09
|
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 |