X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d97ee1b95568e5f3011caeb26b03f44f694e7b81..e1efca652844273c3e8d32c7e5f442b87e455ca7:/tests/misc/garbage.cpp?ds=sidebyside diff --git a/tests/misc/garbage.cpp b/tests/misc/garbage.cpp index 1f81940ca2..ba5cb6746b 100644 --- a/tests/misc/garbage.cpp +++ b/tests/misc/garbage.cpp @@ -52,7 +52,7 @@ private: // register in the unnamed registry so that these tests are run by default CPPUNIT_TEST_SUITE_REGISTRATION( GarbageTestCase ); -// also include in it's own registry so that these tests can be run alone +// also include in its own registry so that these tests can be run alone CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( GarbageTestCase, "GarbageTestCase" ); @@ -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)