lki

Results 4 comments of lki

Save Actions 2.2.0 Refactorings should not be started inside write action because they start progress inside and any read action from the progress task would cause the deadlock java.lang.Exception at...

在 gcc 10.3.1 下面也有这个报错,麻烦大佬看看

mock是把被mock函数换成另外的函数了,mockcpp也是这样。mock系统函数,很可能出现问题。 建议不要mock系统函数。实在需要mock write函数,可以把它封装成另外一个 my_write 这样的函数,mock my_write。自己的被测代码里面不要直接调用write,而是调用 my_write。 > 你要mock系统调用可还行。。。 这个不是mock框架的事。 建议查看如下回答: https://stackoverflow.com/questions/71088486/how-to-mock-system-call-in-c-unit-testing-during-runtime-using-googlemock https://stackoverflow.com/questions/28392277/mocking-free-function 你发的是使用 googlemock 来 mock 系统函数,麻烦给贴个mockcpp的使用例子,多谢

Hello, i also find this bug, i write this code to fix it: ` Json::Value jsLoopList; // initialize jsLoopList as array for(auto item : jsLoopList) { const Json::Value& jsLoop =...