Cpp unit testing of classes
I am an intern in Hp Global software pvt ltd.My job out here is to test native cpp modules.I have encountered a serious problem.my code doesnt have any error but when i debug it,it breaks with a message
[Windows has triggered a breakpoint in STAR_RemoteDeployer.exe.
This may be due to a corruption of the heap, which indicates a bug in STAR_RemoteDeployer.exe or any of the DLLs it has loaded.
This may also be due to the user pressing F12 while STAR_RemoteDeployer.exe has focus.
The output window may have more diagnostic information.]
And i am directed to free.c page and the error shown is-
retval = HeapFree(_crtheap, 0, pBlock);
(error over here)-> if (retval == 0)
errno = _get_errno_from_oserr(GetLastError());
this is my main program
int main (int argc, char* argv)
// informs test-listener about testresults
CPPUNIT_NS :: TestResult testresult;
// register listener for collecting the test-results
CPPUNIT_NS :: TestResultCollector collectedresults;
// register listener for per-test progress output
CPPUNIT_NS :: BriefTestProgressListener progress;
// insert test-suite at test-runner by registry
CPPUNIT_NS :: TestRunner testrunner;
testrunner.addTest (CPPUNIT_NS :: TestFactoryRegistry::getRegistry().makeTest ());
testrunner.run (testresult);(this is the place where it is getting stuck everytime)
// output results in compiler-format
CPPUNIT_NS :: CompilerOutputter compileroutputter (&collectedresults, std::cerr);
// return 0 if tests were successful
return collectedresults.wasSuccessful () ? 0 : 1;
please help.i have to give a presentation soon in my office.
|All times are GMT +5.5. The time now is 18:19.|