make sysutils/py-psutil build on SecBSD
This commit is contained in:
parent
09b3080379
commit
e2e2ced49d
15 changed files with 528 additions and 3 deletions
20
sysutils/py-psutil/patches/patch-psutil_tests_test_posix_py
Normal file
20
sysutils/py-psutil/patches/patch-psutil_tests_test_posix_py
Normal file
|
@ -0,0 +1,20 @@
|
|||
Index: psutil/tests/test_posix.py
|
||||
--- psutil/tests/test_posix.py.orig
|
||||
+++ psutil/tests/test_posix.py
|
||||
@@ -22,6 +22,7 @@ from psutil import LINUX
|
||||
from psutil import MACOS
|
||||
from psutil import OPENBSD
|
||||
from psutil import POSIX
|
||||
+from psutil import SECBSD
|
||||
from psutil import SUNOS
|
||||
from psutil.tests import CI_TESTING
|
||||
from psutil.tests import HAS_NET_IO_COUNTERS
|
||||
@@ -307,7 +308,7 @@ class TestSystemAPIs(PsutilTestCase):
|
||||
pids_psutil = psutil.pids()
|
||||
|
||||
# on MACOS and OPENBSD ps doesn't show pid 0
|
||||
- if MACOS or OPENBSD and 0 not in pids_ps:
|
||||
+ if MACOS or OPENBSD or SECBSD and 0 not in pids_ps:
|
||||
pids_ps.insert(0, 0)
|
||||
|
||||
# There will often be one more process in pids_ps for ps itself
|
Loading…
Add table
Add a link
Reference in a new issue