How do I get BOOST_TEST_MESSAGE to display on the screen?

混江龙づ霸主 提交于 2019-12-04 03:29:05

As per the documentation:

Messages generated by this tool do not appear in test log output with default value of the active log level threshold. For these messages to appear the active log level threshold has to be set to a value below or equal to "message".

Either set the environment variable BOOST_TEST_LOG_LEVEL to message when running your test binary:

BOOST_TEST_LOG_LEVEL=message <your_test>

or pass the command line argument --log_level:

<your_test> --log_level=message
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!