Fix tst_QFile for configurations without process support

Change-Id: Icca2d55f0b9402bf4bcb009d972f21075d144f87
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Oliver Wolff 2017-05-16 10:55:04 +02:00
parent a0d3b5bb2b
commit 00d9033fa0

View File

@ -412,8 +412,10 @@ static QByteArray msgFileDoesNotExist(const QString &name)
void tst_QFile::initTestCase() void tst_QFile::initTestCase()
{ {
QVERIFY2(m_temporaryDir.isValid(), qPrintable(m_temporaryDir.errorString())); QVERIFY2(m_temporaryDir.isValid(), qPrintable(m_temporaryDir.errorString()));
#if QT_CONFIG(process)
m_stdinProcessDir = QFINDTESTDATA("stdinprocess"); m_stdinProcessDir = QFINDTESTDATA("stdinprocess");
QVERIFY(!m_stdinProcessDir.isEmpty()); QVERIFY(!m_stdinProcessDir.isEmpty());
#endif
m_testSourceFile = QFINDTESTDATA("tst_qfile.cpp"); m_testSourceFile = QFINDTESTDATA("tst_qfile.cpp");
QVERIFY(!m_testSourceFile.isEmpty()); QVERIFY(!m_testSourceFile.isEmpty());
m_testLogFile = QFINDTESTDATA("testlog.txt"); m_testLogFile = QFINDTESTDATA("testlog.txt");