Fix building tst_QPluginLoader on OS X, non-devel builds
QMachOParser is defined in the private header that only gets included in developer-builds. Thus ifdef its usage out, not just the header inclusion. Change-Id: I1e0059787be6eb70bd1661c7814e69eee7c5b2ee Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
This commit is contained in:
parent
77e0090995
commit
ec93ea4a6f
@ -312,7 +312,7 @@ void tst_QPluginLoader::loadCorruptElf()
|
||||
|
||||
void tst_QPluginLoader::loadMachO_data()
|
||||
{
|
||||
#ifdef Q_OF_MACH_O
|
||||
#if defined(QT_BUILD_INTERNAL) && defined(Q_OF_MACH_O)
|
||||
QTest::addColumn<int>("parseResult");
|
||||
|
||||
QTest::newRow("/dev/null") << int(QMachOParser::NotSuitable);
|
||||
@ -348,7 +348,7 @@ void tst_QPluginLoader::loadMachO_data()
|
||||
|
||||
void tst_QPluginLoader::loadMachO()
|
||||
{
|
||||
#ifdef Q_OF_MACH_O
|
||||
#if defined(QT_BUILD_INTERNAL) && defined(Q_OF_MACH_O)
|
||||
QFile f(QFINDTESTDATA(QTest::currentDataTag()));
|
||||
QVERIFY(f.open(QIODevice::ReadOnly));
|
||||
QByteArray data = f.readAll();
|
||||
|
Loading…
Reference in New Issue
Block a user