From 59e3353ce20eaf2e37f7b79619aacafd9595559e Mon Sep 17 00:00:00 2001 From: elexis Date: Fri, 13 Oct 2017 21:56:45 +0000 Subject: [PATCH] Fix string format of the JS test assertion failure following r7259 (cxxtest expects a char* instead of a std::wstring, so newlines were printed as \n characters). Differential Revision: https://code.wildfiregames.com/D952 Fixes #4807 git-svn-id: https://svn.wildfiregames.com/public/ps/trunk@20292 3db68df2-c116-0410-a063-a993310a9797 --- source/test_setup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/test_setup.cpp b/source/test_setup.cpp index 6dfe4ff881..8b8c40b581 100644 --- a/source/test_setup.cpp +++ b/source/test_setup.cpp @@ -131,7 +131,7 @@ namespace { void script_TS_FAIL(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), const std::wstring& msg) { - TS_FAIL(msg); + TS_FAIL(utf8_from_wstring(msg).c_str()); } } -- 2.11.4.GIT