Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
根据文档,该--output-on-failure参数将指示 ctest 在测试失败时显示测试输出。第二种方法是设置 env var CTEST_OUTPUT_ON_FAILURE。这两种选择都不适合我。
--output-on-failure
CTEST_OUTPUT_ON_FAILURE
正如您在appveyor上看到的,一些测试失败,但没有给出输出。
在 GNU/Linux 上,设置CTEST_OUTPUT_ON_FAILURE确实对我有用。