您当前的位置:五五电子网电子知识电子学习基础知识电脑-单片机-自动控制C++test在Tornado 2.2-VxWorks-5.5 simulator 下针对CPP代码做单元测试 不能获取测试结果 正文
C++test在Tornado 2.2-VxWorks-5.5 simulator 下针对CPP代码做单元测试 不能获取测试结果

C++test在Tornado 2.2-VxWorks-5.5 simulator 下针对CPP代码做单元测试 不能获取测试结果

点击数:7672 次   录入时间:03-04 11:42:34   整理:http://www.55dianzi.com   电脑-单片机-自动控制

    使用C++test在Tornado 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,重新执行即可。




本文关键字:测试结果  simulator  电脑-单片机-自动控制电子学习 - 基础知识 - 电脑-单片机-自动控制