diff options
author | Benjamin Berg <bberg@redhat.com> | 2021-07-20 17:46:36 +0200 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2021-07-22 14:24:36 +0200 |
commit | dc22db203808bb1298b19ee2ac44998a4a7a4011 (patch) | |
tree | 414f45046e032ae32be5fe21702a9e4aaac1e0bb /tests | |
parent | e81e1b5dcb46001b3a7ac8a6d20d1a597adfb870 (diff) | |
download | gnome-settings-daemon-dc22db203808bb1298b19ee2ac44998a4a7a4011.tar.gz |
tests: Do not use PIPE when not required
Theoretically this could cause deadlocks when the kernel buffers are not
large enough to read the command output.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gsdtestcase.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py index a45e5125..3a6ff9ca 100644 --- a/tests/gsdtestcase.py +++ b/tests/gsdtestcase.py @@ -33,7 +33,7 @@ except ImportError: sys.stderr.write('You need pygobject and the Gio GIR for this test suite.\n') sys.exit(77) -if subprocess.call(['which', 'gnome-session'], stdout=subprocess.PIPE) != 0: +if subprocess.call(['which', 'gnome-session'], stdout=subprocess.DEVNULL) != 0: sys.stderr.write('You need gnome-session for this test suite.\n') sys.exit(77) |