您的位置 首页 嵌入式

C++test在对Tornado 2.2-VxWorks-5.5 simulator 下针对C++代码单元测试

使用C++test在Tornado 2.2-VxWorks-5.5 simulator 下针对CPP代码做单元测试时,出现不能获取测试结果的问题,反复侦测问题的缘由,查看帮助文档,终于在帮助文档中找到

运用C++testTornado 2.2-VxWorks-5.5 simulator 下针对CPP代码做单元测验时,呈现不能获取测验成果的问题,重复侦测问题的缘由,检查协助文档,总算在协助文档中找到如下一些阐明:

The default build of VxWorks-5.5 simulator (%WIND_BASE%targetconfigsimpcvxWorks.exe; Tornado-2.2) doesn’t contain enough C++ features to satisfy C++test‘s C++ instrumentation needs in its default mode. Thus, to test C++ code, you either need to build your own VxSim image with scaled-up C++ support (we recommend using all C++ features except complex numbers; at minimum) or you need to add the -DCPPTEST_SPECIAL_STD_EXCEPTIONS_HANDLING_ENABLED=0 definition to the project compilation flags. This issue does not affect VxWorks-5.4 (Tornado-2.0).

协助文档中说得很清楚,VxWorks5.5默许的simulator短少C++特性支撑,所以解决方案便是从头构建一个支撑C++特性的image,从头履行即可。

声明:本文内容来自网络转载或用户投稿,文章版权归原作者和原出处所有。文中观点,不代表本站立场。若有侵权请联系本站删除(kf@86ic.com)https://www.86ic.net/qianrushi/284024.html

为您推荐

联系我们

联系我们

在线咨询: QQ交谈

邮箱: kf@86ic.com

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

返回顶部