Fix building tests with wxUSE_XRC==0

This commit is contained in:
Paul Cornett
2017-10-01 09:46:03 -07:00
parent a87599b127
commit 7816ca6538
2 changed files with 7 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
#include "wx/filename.h"
#include "wx/image.h"
#include "wx/icon.h"
#include "wx/animate.h"
#include "wx/mstream.h"
#include "wx/dynlib.h"
@@ -161,7 +162,9 @@ void GarbageTestCase::DoLoadFile(const wxString& fullname)
delete htmlwin;
*/
// test wxXmlResource
#if wxUSE_XRC
CPPUNIT_ASSERT( wxXmlResource::Get()->Load(fullname) == false );
#endif
}
void GarbageTestCase::DoLoadStream(wxInputStream& stream)