Fix exit status tests on osx

This commit is contained in:
Daniel A. Wozniak 2018-12-04 10:42:56 -07:00
parent c53c046edf
commit 6d07cb4af7
No known key found for this signature in database
GPG key ID: 166B9D2C06C82D61

View file

@ -820,6 +820,9 @@ class TestDaemon(TestProgram):
# Process exited between when process_iter was invoked and
# when we tried to invoke this instance's cmdline() func.
continue
except psutils.AccessDenied:
# We might get access denied if not running as root
continue
if any((cmdline == proc_cmdline[n:n + cmd_len])
for n in range(len(proc_cmdline) - cmd_len + 1)):
ret.append(proc)