Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何排除CMake构建不可再现故障 我有一个C++项目,它使用CMADE构建,我们也有亚特兰西竹作为CI构建服务器。我的测试是用C++ GooGestEt定义的。我有一个测试用例suite\u simple\u,当作为独立的可执行文件执行时工作正常,所有测试都通过,但当我作为CI构建的一部分运行它时,即make test或ctest-T test时,它会失败。更复杂的是,这种情况只发生在Bambol CI构建中,因为我的用户没有任何错误。如果我在valgrind下运行它,我也看不到任何错误_C++_Cmake_Bamboo - Fatal编程技术网

如何排除CMake构建不可再现故障 我有一个C++项目,它使用CMADE构建,我们也有亚特兰西竹作为CI构建服务器。我的测试是用C++ GooGestEt定义的。我有一个测试用例suite\u simple\u,当作为独立的可执行文件执行时工作正常,所有测试都通过,但当我作为CI构建的一部分运行它时,即make test或ctest-T test时,它会失败。更复杂的是,这种情况只发生在Bambol CI构建中,因为我的用户没有任何错误。如果我在valgrind下运行它,我也看不到任何错误

如何排除CMake构建不可再现故障 我有一个C++项目,它使用CMADE构建,我们也有亚特兰西竹作为CI构建服务器。我的测试是用C++ GooGestEt定义的。我有一个测试用例suite\u simple\u,当作为独立的可执行文件执行时工作正常,所有测试都通过,但当我作为CI构建的一部分运行它时,即make test或ctest-T test时,它会失败。更复杂的是,这种情况只发生在Bambol CI构建中,因为我的用户没有任何错误。如果我在valgrind下运行它,我也看不到任何错误,c++,cmake,bamboo,C++,Cmake,Bamboo,通过ctest-T Test运行测试时,是否有一个标志或方法来显示正在发生的情况,例如,我想查看异常输出,如何执行该操作?使用-VV参数查看所有ctest输出: -VV,--extra-verbose Enable more verbose output from tests. Test output is normally suppressed and only summary information is displayed. This option will s

通过
ctest-T Test
运行测试时,是否有一个标志或方法来显示正在发生的情况,例如,我想查看异常输出,如何执行该操作?

使用
-VV
参数查看所有ctest输出:

-VV,--extra-verbose

    Enable more verbose output from tests.

    Test output is normally suppressed and only summary
    information is displayed. This option will show even more test output.

您是否查看了cmake生成的测试输出。它位于
build dir/Testing/..
中,至少应该有程序打印到
std::out
std::err
@ruslo的输出,将此作为答案添加,我将接受。