Quantcast
Channel: opencppcoverage Discussions Rss Feed
Viewing all articles
Browse latest Browse all 235

New Post: OpenCPPCover with native C++ test

$
0
0
Hello,

I have just found the issue:
  • vstest.console.exe loads XXX.dll
  • OpenCppCoverage adds some breakpoints and fills addressLineMap_ in ExecutedAddressManager::RegisterAddress
  • vstest.console.exe unloads XXX.dll => Every breakpoints are lost
  • vstest.console.exe loads XXX.dll
  • OpenCppCoverage does not add breakpoints because they already exist in addressLineMap_
    => There is no coverage
As a quick hack, you can replace in ExecutedAddressManager::RegisterAddress, if (itAddress == addressLineMap_.end()) by if (instructionValue != 0xCC). It should solve the problem temporary.

I am going to develop a real fix by handling dll unload correctly.

Thanks a lot for all the information you provide to help solving this issue!!!!

OpenCppCoverage

Viewing all articles
Browse latest Browse all 235

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>