summaryrefslogtreecommitdiffstats
path: root/src/testlib/testlib.pro
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@theqtcompany.com>2016-05-03 11:49:49 +0200
committerTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2016-08-18 08:46:25 +0000
commit960a1e3bf3414a59e7bd436b3a2d63a595b34dc8 (patch)
treefb952d93349ab6ff4b6b10ef4190a430888f4a0f /src/testlib/testlib.pro
parent748aa6b06462804a9671997302df292ae9788d5c (diff)
QTestLib: Disable window state restore on macOS
For test runs we want to start with a clean slate and ignore previously saved window state. This also prevents the “previous restore failed” dialog from from showing and blocking the test run. Change-Id: I8e5b87a903cf1d937d628c2b062f917c4c37f176 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/testlib/testlib.pro')
-rw-r--r--src/testlib/testlib.pro7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/testlib/testlib.pro b/src/testlib/testlib.pro
index ff4379f85d..3f16a0ec46 100644
--- a/src/testlib/testlib.pro
+++ b/src/testlib/testlib.pro
@@ -75,7 +75,12 @@ wince: LIBS += \
mac {
LIBS += -framework Security
- osx: LIBS += -framework ApplicationServices -framework IOKit
+
+ macos {
+ HEADERS += qtestutil_macos_p.h
+ OBJECTIVE_SOURCES += qtestutil_macos.mm
+ LIBS += -framework Foundation -framework ApplicationServices -framework IOKit
+ }
# XCTest support
!lessThan(QMAKE_XCODE_VERSION, "6.0") {