commit: d8d343c9cf7ee8d17a0454e0e65311a2d95c703a Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sun Oct 12 17:17:53 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sun Oct 12 17:35:53 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8d343c9
kde-apps/artikulate: Fix editorsession test Closes: https://bugs.gentoo.org/963522 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> kde-apps/artikulate/artikulate-25.08.2.ebuild | 2 ++ .../artikulate-25.08.2-editorsession-test.patch | 26 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/kde-apps/artikulate/artikulate-25.08.2.ebuild b/kde-apps/artikulate/artikulate-25.08.2.ebuild index 751ba1741c99..f5d0f6671a05 100644 --- a/kde-apps/artikulate/artikulate-25.08.2.ebuild +++ b/kde-apps/artikulate/artikulate-25.08.2.ebuild @@ -37,6 +37,8 @@ RDEPEND="${DEPEND} dev-libs/kirigami-addons:6 " +PATCHES=( "${FILESDIR}/${P}-editorsession-test.patch" ) # bug #963522 + src_configure() { local mycmakeargs=( -DBUILD_autotests=$(usex test) diff --git a/kde-apps/artikulate/files/artikulate-25.08.2-editorsession-test.patch b/kde-apps/artikulate/files/artikulate-25.08.2-editorsession-test.patch new file mode 100644 index 000000000000..db101c0deba6 --- /dev/null +++ b/kde-apps/artikulate/files/artikulate-25.08.2-editorsession-test.patch @@ -0,0 +1,26 @@ +From b527ac775a6a5f1991c924720bd47802f48ad1c5 Mon Sep 17 00:00:00 2001 +From: Andreas Cord-Landwehr <[email protected]> +Date: Sat, 6 Sep 2025 18:00:02 +0200 +Subject: [PATCH] Fix editorsession test + +--- + autotests/unittests/editorsession/test_editorsession.cpp | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/autotests/unittests/editorsession/test_editorsession.cpp b/autotests/unittests/editorsession/test_editorsession.cpp +index f0859d12..fd9a4a20 100644 +--- a/autotests/unittests/editorsession/test_editorsession.cpp ++++ b/autotests/unittests/editorsession/test_editorsession.cpp +@@ -159,7 +159,8 @@ void TestEditorSession::iterateCourse() + + // session assumed to initialize with first units's first phrase + QCOMPARE(session.activeUnit(), unitA.get()); +- QCOMPARE(session.activePhrase()->self(), phraseA1); ++ // activating a unit shall not automatially select a phrase ++ QVERIFY(session.activePhrase() == nullptr); + QVERIFY(course.get() == session.course()); + + // test direct unit setters +-- +GitLab +
