make sysutils/py-psutil build on SecBSD

This commit is contained in:
purplerain 2023-09-12 03:36:48 +00:00
parent 09b3080379
commit e2e2ced49d
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
15 changed files with 528 additions and 3 deletions

View 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