开发者

VSInstr not honoring EXCLUDES (VS2010)

开发者 https://www.devze.com 2023-03-01 00:07 出处:网络
I\'m at a loss here. Our unit tests are instrumented by VSInstr and then profiled by PerfMon (code coverage). We have an extensive list of excludes that we use:

I'm at a loss here. Our unit tests are instrumented by VSInstr and then profiled by PerfMon (code coverage). We have an extensive list of excludes that we use:

/EXCLUDE:"boost::*"
/EXCLUDE:"ATL:开发者_C百科:*"
/EXCLUDE:"UnitTestNamespace::*"
/EXCLUDE:"cppunit::*"

...etc...

When our unit tests are run, the code coverage file gives us a listing of all of our code, plus all the namespaces and classes that were excluded. No errors were generated by VSInstr. We compile our unit tests with the /PROFILE linker flag.

Has anyone run into this problem before?

EDIT: I tried excluding only ATL::, but it still included it. So my theory that the command line was too long was proven wrong.


No quote characters in ours, e.g.,

%vsinstr% <someDLL> @CPPCoverageExcludes.txt

where CPPCoverageExcludes.txt looks like this:

/exclude:std::*
/exclude:ATL::*
...
/exclude:_com_error::*
/exclude:_com_issue_error::*
/exclude:_com_issue_errorex::*
/exclude:_com_raise_error::*
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号