From e084c8707ea2da496e879a218f04dd60548719aa Mon Sep 17 00:00:00 2001 From: yangl777 Date: Fri, 19 Apr 2024 03:41:39 +0000 Subject: [PATCH] fix test error (cherry picked from commit 2215b37af0c4f8feb1685ddca9782d8fe5156de5) --- at-spi2-core.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/at-spi2-core.spec b/at-spi2-core.spec index 116b2c8..a793e40 100644 --- a/at-spi2-core.spec +++ b/at-spi2-core.spec @@ -1,6 +1,7 @@ +#needsrootforbuild Name: at-spi2-core Version: 2.42.0 -Release: 3 +Release: 4 Summary: The At-Spi2 Core package is a part of the GNOME Accessibility Project. License: LGPLv2+ @@ -41,7 +42,13 @@ The API documentation and header files of litabspi are included by %{name}-devel %ldconfig_scriptlets %check -dbus-launch ninja -C %{_host} test +if [ ! -e /usr/libexec/at-spi-bus-launcher ];then + ninja -C %{_host} install + dbus-launch ninja -C %{_host} test + ninja -C %{_host} uninstall +else + dbus-launch ninja -C %{_host} test +fi %files %doc AUTHORS @@ -70,6 +77,9 @@ dbus-launch ninja -C %{_host} test %{_datadir}/gtk-doc/html/libatspi %changelog +* Fri Apr 19 2024 yanglu - 2.42.0-4 +- fix test error + * Fri Nov 10 2023 zhangpan - 2.42.0-3 - enable make check -- Gitee