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)

View File

@ -20,6 +20,8 @@
#include "wx/wx.h"
#endif // WX_PRECOMP
#if wxUSE_XRC
#include "wx/xml/xml.h"
#include "wx/sstream.h"
#include "wx/wfstream.h"
@ -226,3 +228,5 @@ void XrcTestCase::IDRanges()
CPPUNIT_ASSERT( wxXmlResource::Get()->Unload(TEST_XRC_FILE) );
}
}
#endif // wxUSE_XRC