Disable unit tests which can't work in ANSI build.
Disable unit tests involving operations (such as conversions between UTF and anything but plain ASCII) not available in ANSI build. This fixes the test suite for non-Unicode build under Unix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
716ee1223e
commit
87f528f15b
6 changed files with 20 additions and 0 deletions
|
|
@ -169,6 +169,7 @@ void XmlTestCase::LoadSave()
|
|||
CPPUNIT_ASSERT_EQUAL( xmlText, sos.GetString() );
|
||||
|
||||
|
||||
#if wxUSE_UNICODE
|
||||
const char *utf8xmlText =
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
|
||||
"<word>\n"
|
||||
|
|
@ -191,6 +192,7 @@ void XmlTestCase::LoadSave()
|
|||
CPPUNIT_ASSERT( doc.Save(sos8) );
|
||||
CPPUNIT_ASSERT_EQUAL( wxString(utf8xmlText),
|
||||
wxString(sos8.GetString().ToUTF8()) );
|
||||
#endif // wxUSE_UNICODE
|
||||
}
|
||||
|
||||
void XmlTestCase::CDATA()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue