summaryrefslogtreecommitdiffstats
path: root/tests/auto/core
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2016-12-02 13:03:53 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2017-01-10 09:26:47 +0000
commitceff67e0bab4d34c5b791d1f1b1d43c7a4e44d84 (patch)
treea8e2c65b769a6eac13fbc037001475367414487e /tests/auto/core
parent017cf5e691290fb667847866e68e84ec3fcdb516 (diff)
Fix font load error messages inside non-app-bundle tests
Some fonts were failing to load in tests because macOS does not consider some font paths when an application is built without an Info.plist file (as is the case for a non-bundle application). It is possible though to embed a plist file into the executable by passing the path to the file as a linker argument. This change generates an Info.plist for each test, and embeds it into the final executable, thus fixing the font problems. Task-number: QTBUG-57354 Change-Id: I4c3c29442b9d308ee6a327645054a67c4b008ef8 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'tests/auto/core')
-rw-r--r--tests/auto/core/tests.pri3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/core/tests.pri b/tests/auto/core/tests.pri
index 606ed2a8c..19f53f12d 100644
--- a/tests/auto/core/tests.pri
+++ b/tests/auto/core/tests.pri
@@ -12,4 +12,5 @@ INCLUDEPATH += $$PWD
exists($$_PRO_FILE_PWD_/$${TARGET}.qrc): RESOURCES += $${TARGET}.qrc
QT += testlib network webenginewidgets widgets
-osx: CONFIG -= app_bundle
+
+include(../embed_info_plist.pri)