mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-02-04 09:30:29 +01:00
linux: Add a way to run upowerd under catchsegv
So we can use that to catch crashes instead of monitoring the whole test session.
This commit is contained in:
parent
7f3a31447f
commit
35c68c107d
1 changed files with 2 additions and 0 deletions
|
|
@ -197,6 +197,8 @@ class Tests(dbusmock.DBusTestCase):
|
|||
|
||||
if os.getenv('VALGRIND') != None:
|
||||
daemon_path = ['valgrind', self.daemon_path, '-v']
|
||||
elif os.getenv('CATCH') != None:
|
||||
daemon_path = ['catchsegv', self.daemon_path, '-v']
|
||||
else:
|
||||
daemon_path = [self.daemon_path, '-v']
|
||||
self.daemon = subprocess.Popen(daemon_path,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue