This change is not needed any longer after r66219 which fixed the real
underlying problem, i.e. that attempting to load an invalid XRC file resulted
in failures when loading all subsequent XRC files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66220
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
delete htmlwin;
*/
// test wxXmlResource
- bool loaded = wxXmlResource::Get()->Load(fullname);
- wxXmlResource::Get()->Unload(fullname);
- if ( loaded )
- {
- CPPUNIT_FAIL
- (
- wxString::Format("Unexpectedly succeeded loading XRC from '%s'",
- fullname).ToStdString()
- );
- }
+ CPPUNIT_ASSERT( wxXmlResource::Get()->Load(fullname) == false );
}
void GarbageTestCase::DoLoadStream(wxInputStream& stream)