[Cppunit-devel] TestRunner with MFC
Brought to you by:
blep
From: lacall <la...@mi...> - 2002-03-09 14:01:04
|
I'm wondering if someone could point me in the right direction on some kind of bug in the way I'm using TestRunner. I seem to be using it exactly like in the example code, and when I call runner.run() it launches the TestRunner dialog just fine. But when I click the "Browse" button in TestRunner, I get a "debug assertion failed" in ...\mfc\src\dlgdata.cpp line 43. It is where it is calling CDataExchange::PrepareCtrl(...) and the hWinCtrl is null (I believe it is trying to get the handle to the parent dialog, but it gets a null value). Interestingly, the tests seem to work ok with the TextTestRunner when called identically from the app. I stepped through it and it worked great (except that the std::cout test results aren't displayed, due to it being an MFC app). Any ideas what I may be doing wrong to cause the error with TestRunner's Browse button? I have stepped through the code extensively, comparing it to the same code and execution path for the provided cppunit MFC examples, and can't tell what's different; maybe this particular MFC issue is just over my head a bit. Many thanks for any ideas! Luke Call EDM Group Micron Technology, Boise |