From 8dc6ed427dbd16b14cb8920e0618c83da41fcd86 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 7c2e9027c2 (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 This was SVN commit r20292. --- 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()); } }