Skip to content
Snippets Groups Projects
Commit 0cf1c8c4 authored by Simon Heimberg's avatar Simon Heimberg
Browse files

tests: killdaemons.py for checks reason when getting no process handle

parent ea3adeac
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@
handle = ctypes.windll.kernel32.OpenProcess(
PROCESS_TERMINATE|SYNCHRONIZE, False, pid)
if handle == 0:
# TODO: call _check(0, expected) to check if "process not found"
_check(0, 87) # err 87 when process not found
return # process not found, already finished
try:
_check(ctypes.windll.kernel32.TerminateProcess(handle, -1), 5)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment