commit:     323b59ccbd7ebf199f934eeeab8fc23ca881b9db
Author:     James Beddek <telans <AT> posteo <DOT> de>
AuthorDate: Wed Oct 20 08:34:39 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Nov 19 03:48:06 2021 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=323b59cc

ecm.eclass: set KDE_DEBUG=1 for ecm_src_test

The KDE_DEBUG variable [1] prevents crash handlers such as DrKonqi from 
launching
if a test were to segfault.

This prevents a hanging test phase where DrKonqi has launched and is waiting
for input on the virtx display.

[sam: We already try to disable apport/similar crash reporters because they
slow down tests, don't always play well in sandbox, and confuse users, so
this seems like a natural change.]

[1]: 
https://userbase.kde.org/KDE_System_Administration/Environment_Variables#KDE_DEBUG

Signed-off-by: James Beddek <telans <AT> posteo.de>
Closes: https://github.com/gentoo/gentoo/pull/22643
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/ecm.eclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/eclass/ecm.eclass b/eclass/ecm.eclass
index a2c8ed1c95..5ae6e73401 100644
--- a/eclass/ecm.eclass
+++ b/eclass/ecm.eclass
@@ -508,7 +508,8 @@ ecm_src_test() {
                        export $(dbus-launch)
                fi
 
-               cmake_src_test
+               # KDE_DEBUG stops crash handlers from launching and hanging the 
test phase
+               KDE_DEBUG=1 cmake_src_test
        }
 
        # When run as normal user during ebuild development with the ebuild 
command,

Reply via email to