summaryrefslogtreecommitdiff
path: root/psutil/tests/test_process.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2021-12-29 20:45:02 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2021-12-29 20:45:02 +0100
commit898fa1b0013a82f1909450d6d6e3923f67c01f4a (patch)
tree6e302ac265e8b0fd980b2244fc689181843737ea /psutil/tests/test_process.py
parent75fd6655851d43d8d8a157c6f6d37e4fc2594cf1 (diff)
downloadpsutil-history-urls.tar.gz
try to fix CIhistory-urls
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
Diffstat (limited to 'psutil/tests/test_process.py')
-rwxr-xr-xpsutil/tests/test_process.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py
index 08f16647..c9059e33 100755
--- a/psutil/tests/test_process.py
+++ b/psutil/tests/test_process.py
@@ -1413,11 +1413,13 @@ class TestProcess(PsutilTestCase):
code = textwrap.dedent("""
#include <unistd.h>
#include <fcntl.h>
+
char * const argv[] = {"cat", 0};
char * const envp[] = {"A=1", "X", "C=3", 0};
+
int main(void) {
- /* Close stderr on exec so parent can wait for the execve to
- * finish. */
+ // Close stderr on exec so parent can wait for the
+ // execve to finish.
if (fcntl(2, F_SETFD, FD_CLOEXEC) != 0)
return 0;
return execve("/bin/cat", argv, envp);