From a08711325b69ca25ca9236857bd32abba648aad8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 10 Oct 2008 21:12:51 +0000 Subject: [PATCH] fix C strings comparison in LoadSave() test in STL build git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/xml/xmltest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/xml/xmltest.cpp b/tests/xml/xmltest.cpp index 8c741ca4f3..6d7faeb3c8 100644 --- a/tests/xml/xmltest.cpp +++ b/tests/xml/xmltest.cpp @@ -185,6 +185,7 @@ void XmlTestCase::LoadSave() wxStringOutputStream sos8; doc.SetFileEncoding("UTF-8"); CPPUNIT_ASSERT( doc.Save(sos8) ); - CPPUNIT_ASSERT_EQUAL( utf8xmlText, sos8.GetString().ToUTF8() ); + CPPUNIT_ASSERT_EQUAL( wxString(utf8xmlText), + wxString(sos8.GetString().ToUTF8()) ); }