tst_qapplication: Fix auto test for configs with builtin_testdata
Change-Id: Ie5b4dad19387c18e0d11d44b9b1a735269ec5e04 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
This commit is contained in:
parent
2d37360e01
commit
de0a210eb0
@ -7,7 +7,9 @@ QT += core-private gui-private
|
||||
SOURCES += ../tst_qapplication.cpp
|
||||
TARGET = ../tst_qapplication
|
||||
|
||||
TESTDATA = ../test/test.pro ../tmp/README
|
||||
builtin_testdata: DEFINES += BUILTIN_TESTDATA
|
||||
|
||||
TESTDATA = ../test/test.pro ../tmp/README ../modal
|
||||
|
||||
!winrt {
|
||||
SUBPROGRAMS = desktopsettingsaware modal
|
||||
|
@ -888,7 +888,11 @@ bool isPathListIncluded(const QStringList &l, const QStringList &r)
|
||||
#define QT_TST_QAPP_DEBUG
|
||||
void tst_QApplication::libraryPaths()
|
||||
{
|
||||
#ifndef BUILTIN_TESTDATA
|
||||
const QString testDir = QFileInfo(QFINDTESTDATA("test/test.pro")).absolutePath();
|
||||
#else
|
||||
const QString testDir = QFileInfo(QFINDTESTDATA("test.pro")).absolutePath();
|
||||
#endif
|
||||
QVERIFY(!testDir.isEmpty());
|
||||
{
|
||||
QApplication::setLibraryPaths(QStringList() << testDir);
|
||||
|
Loading…
Reference in New Issue
Block a user