summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2021-07-20 12:42:55 +0200
committerBenjamin Berg <bberg@redhat.com>2021-07-22 14:23:50 +0200
commit148b682883bd2c484f9c60fd32d2c5589b7e14e5 (patch)
tree2374c85765bb1b777fd3b4bdb898a3d7c4596593 /tests
parente57551547eadf938e2180377acaf6aba9e2d0585 (diff)
downloadgnome-settings-daemon-148b682883bd2c484f9c60fd32d2c5589b7e14e5.tar.gz
tests: Try showing a backtrace when meson terminates the process
Diffstat (limited to 'tests')
-rw-r--r--tests/gsdtestcase.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py
index 9926b3b3..d4b0c1bf 100644
--- a/tests/gsdtestcase.py
+++ b/tests/gsdtestcase.py
@@ -13,6 +13,7 @@ import fcntl
import shutil
import sys
from glob import glob
+import signal
from output_checker import OutputChecker
@@ -102,6 +103,11 @@ class GSDTestCase(X11SessionTestCase):
klass.settings_session = Gio.Settings(schema_id='org.gnome.desktop.session')
+ # Make sure we get a backtrace when meson kills after a timeout
+ def r(*args):
+ raise KeyboardInterrupt()
+ signal.signal(signal.SIGTERM, r)
+
def run(self, result=None):
'''Show log files on failed tests