summaryrefslogtreecommitdiffstats
path: root/tests/auto/client/nooutput
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/client/nooutput')
-rw-r--r--tests/auto/client/nooutput/CMakeLists.txt5
-rw-r--r--tests/auto/client/nooutput/tst_nooutput.cpp4
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/auto/client/nooutput/CMakeLists.txt b/tests/auto/client/nooutput/CMakeLists.txt
index ab9dd3a6d..eeee57909 100644
--- a/tests/auto/client/nooutput/CMakeLists.txt
+++ b/tests/auto/client/nooutput/CMakeLists.txt
@@ -1,3 +1,6 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
# Generated from nooutput.pro.
#####################################################################
@@ -7,6 +10,6 @@
qt_internal_add_test(tst_nooutput
SOURCES
tst_nooutput.cpp
- PUBLIC_LIBRARIES
+ LIBRARIES
SharedClientTest
)
diff --git a/tests/auto/client/nooutput/tst_nooutput.cpp b/tests/auto/client/nooutput/tst_nooutput.cpp
index 35b4e0e95..1d8a838f3 100644
--- a/tests/auto/client/nooutput/tst_nooutput.cpp
+++ b/tests/auto/client/nooutput/tst_nooutput.cpp
@@ -1,5 +1,5 @@
// Copyright (C) 2019 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "mockcompositor.h"
#include <QtGui/QScreen>
@@ -41,7 +41,7 @@ void tst_nooutput::noScreens()
// The window should not be exposed before the first xdg_surface configure event
QTRY_VERIFY(!window.isExposed());
- exec([=] {
+ exec([&] {
xdgToplevel()->sendConfigure({0, 0}, {}); // Let the window decide the size
xdgSurface()->sendConfigure(nextSerial());
});