Revert r66070: "Unload bogus XRC resources in "garbage" unit test."

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
This commit is contained in:
Vadim Zeitlin
2010-11-21 13:00:06 +00:00
parent 9fc5a47ce6
commit f9ee3f4710

View File

@@ -149,16 +149,7 @@ void GarbageTestCase::DoLoadFile(const wxString& fullname)
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)