From ba7024418ddead785687e6e1993b67e6c58b4c22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Mon, 8 Aug 2022 20:19:19 -0700 Subject: [PATCH] Disabled unit-test ANSI color output for Emscripten build. --- tests/run_test.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/run_test.cpp b/tests/run_test.cpp index 7e3b8d3..ac32d05 100644 --- a/tests/run_test.cpp +++ b/tests/run_test.cpp @@ -17,5 +17,15 @@ int runAllTests(int _argc, const char* _argv[]) ", Time: " __TIME__ ", C++: " BX_CPP_NAME ); - return Catch::Session().run(_argc, _argv); + + using namespace Catch; + + Session session; + + ConfigData config; + config.useColour = BX_PLATFORM_EMSCRIPTEN ? UseColour::No : UseColour::Auto; + + session.useConfigData(config); + + return session.run(_argc, _argv); }