运用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,从头履行即可。