XCode 5.1 Unit Test Coverage Analysis Fails On Files Using Blocks

前端 未结 4 1404
醉话见心
醉话见心 2020-12-13 02:46

Today I was tasked with adding unit test coverage analysis to our code base. Today is also the day iOS 7.1 is released along with XCode 5.1. From the release notes:

4条回答
  •  借酒劲吻你
    2020-12-13 03:27

    Actually I noticed that lcov is invoking gcov with -b option and gcov-4.2 will crash on this option (raise segmentation fault). If I remove the -b option from getinfo, then even though it still shows some error info, the gcov file can still be generated.

    That is probably why coverstory can still give coverage output. So I guess the workaround is to remove -b option from lcov. And also as you suggested, ignore the error in getinfo

提交回复
热议问题