diff options
author | Robert Griebl <robert.griebl@qt.io> | 2022-05-19 18:42:49 +0200 |
---|---|---|
committer | Robert Griebl <robert.griebl@qt.io> | 2022-05-30 23:08:24 +0200 |
commit | fead65a04425c323b09d5787b083e7e6e3f02a4b (patch) | |
tree | 0fc3f4242e5307a70c6162277454cf144a9cffc1 | |
parent | 481846d7d81056c331f244a28c5eaf9a05e0ff89 (diff) | |
download | qtapplicationmanager-fead65a04425c323b09d5787b083e7e6e3f02a4b.tar.gz |
Make the tests not fail when run from a Wayland based desktop
Change-Id: I2140470d624e6ffff0c5757aa03b22a345010f8b
Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
-rw-r--r-- | tests/auto/configuration/tst_configuration.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/configuration/tst_configuration.cpp b/tests/auto/configuration/tst_configuration.cpp index 21a18303..d7e287ff 100644 --- a/tests/auto/configuration/tst_configuration.cpp +++ b/tests/auto/configuration/tst_configuration.cpp @@ -124,12 +124,12 @@ void tst_Configuration::defaultConfig() QString defaultWaylandSocketName = #if defined(Q_OS_LINUX) - qSL("qtam-wayland-0"); + qSL("qtam-wayland-"); #else QString(); #endif - - QCOMPARE(c.waylandSocketName(), defaultWaylandSocketName); + // we cannot rely on the actual display number, when running on Wayland Desktop + QVERIFY(c.waylandSocketName().startsWith(defaultWaylandSocketName)); QCOMPARE(c.waylandExtraSockets(), {}); QCOMPARE(c.managerCrashAction(), QVariantMap {}); |