mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
launcher: set gsettings-backend to prevent weird deadlocks
It seems like some sort of forking/dconf/gtype combination can deadlock occasionally. Setting the gsettings backend to memory makes it go away. Same issue: https://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/tests/check/Makefile.am?id=8e2c1d1de56bddbff22170f8b17473882e0e63f9
This commit is contained in:
parent
d0a7d9b094
commit
f4cdbd006b
1 changed files with 6 additions and 0 deletions
|
@ -553,6 +553,12 @@ Note that all testsuite should be inside python modules, so the directory should
|
||||||
print("Running HTTP server only")
|
print("Running HTTP server only")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# There seems to be some issue with forking, dconf and some gtype
|
||||||
|
# initialization that deadlocks occasionally, setting the
|
||||||
|
# GSettings backend make it go away.
|
||||||
|
# Also happened here: https://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/tests/check/Makefile.am?id=8e2c1d1de56bddbff22170f8b17473882e0e63f9
|
||||||
|
os.environ['GSETTINGS_BACKEND'] = "memory"
|
||||||
|
|
||||||
e = None
|
e = None
|
||||||
try:
|
try:
|
||||||
tests_launcher.run_tests()
|
tests_launcher.run_tests()
|
||||||
|
|
Loading…
Reference in a new issue