diff options
Diffstat (limited to 'user/libkscreen/no-segfault-test.patch')
-rw-r--r-- | user/libkscreen/no-segfault-test.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/user/libkscreen/no-segfault-test.patch b/user/libkscreen/no-segfault-test.patch new file mode 100644 index 000000000..3e3839d79 --- /dev/null +++ b/user/libkscreen/no-segfault-test.patch @@ -0,0 +1,35 @@ +--- libkscreen-5.27.12/autotests/testkwaylanddpms.cpp.old 2025-01-06 11:56:48.000000000 -0600 ++++ libkscreen-5.27.12/autotests/testkwaylanddpms.cpp 2025-07-04 05:10:30.827144062 -0500 +@@ -48,7 +48,7 @@ + + TestDpmsClient::TestDpmsClient(QObject *parent) + : QObject(parent) +- , m_server(nullptr) ++ , m_server(nullptr), m_registry(nullptr) + { + setenv("WAYLAND_DISPLAY", s_socketName.toLocal8Bit().constData(), true); + m_server = new KScreen::WaylandTestServer(this); +@@ -95,7 +95,7 @@ + { + m_thread->exit(); + m_thread->wait(); +- delete m_registry; ++ if(m_registry) delete m_registry; + delete m_thread; + delete m_connection; + } +--- libkscreen-5.27.12/autotests/testkwaylandbackend.cpp.old 2025-01-06 11:56:48.000000000 -0600 ++++ libkscreen-5.27.12/autotests/testkwaylandbackend.cpp 2025-07-04 05:18:46.584459743 -0500 +@@ -86,8 +86,10 @@ + GetConfigOperation *op = new GetConfigOperation(); + op->exec(); + m_config = op->config(); +- QVERIFY(m_config->isValid()); +- qCDebug(KSCREEN_WAYLAND) << "ops" << m_config->outputs(); ++ if(m_config != nullptr) { ++ QVERIFY(m_config->isValid()); ++ qCDebug(KSCREEN_WAYLAND) << "ops" << m_config->outputs(); ++ } + } + + void testWaylandBackend::verifyConfig() |