[6/6] Make autotests create fake input devices This test was the only one where input() could return a nullptr. With this test removed, autotests can now expect input() to always return a sane valid value and are therefor simpler to write. That test belongs in kwayland-server anyway and kwayland-server's test suite already tests that starting without XDG_RUNTIME_DIR is a no-no thingremotes/origin/work/eric/contextual-gestures
parent
270a963350
commit
39160e7dbd
2 changed files with 0 additions and 37 deletions
@ -1,36 +0,0 @@ |
||||
/*
|
||||
KWin - the KDE window manager |
||||
This file is part of the KDE project. |
||||
|
||||
SPDX-FileCopyrightText: 2016 Martin Gräßlin <mgraesslin@kde.org> |
||||
|
||||
SPDX-License-Identifier: GPL-2.0-or-later |
||||
*/ |
||||
#include "kwin_wayland_test.h" |
||||
#include "wayland_server.h" |
||||
|
||||
using namespace KWin; |
||||
|
||||
static const QString s_socketName = QStringLiteral("wayland_test_kwin_no_xdg_runtime_dir-0"); |
||||
|
||||
class NoXdgRuntimeDirTest : public QObject |
||||
{ |
||||
Q_OBJECT |
||||
private Q_SLOTS: |
||||
void initTestCase(); |
||||
void testInitFails(); |
||||
}; |
||||
|
||||
void NoXdgRuntimeDirTest::initTestCase() |
||||
{ |
||||
qunsetenv("XDG_RUNTIME_DIR"); |
||||
} |
||||
|
||||
void NoXdgRuntimeDirTest::testInitFails() |
||||
{ |
||||
// this test verifies that without an XDG_RUNTIME_DIR the WaylandServer fails to start
|
||||
QVERIFY(!waylandServer()->init(s_socketName)); |
||||
} |
||||
|
||||
WAYLANDTEST_MAIN(NoXdgRuntimeDirTest) |
||||
#include "no_xdg_runtime_dir_test.moc" |
||||
Loading…
Reference in new issue