tests: killdaemons.py for checks reason when getting no process handle stable
authorSimon Heimberg <simohe@besonet.ch>
Wed, 12 Feb 2014 15:38:59 +0100
branchstable
changeset 1331 7d8bb8590b55
parent 1330 e2fe607966f6
child 1332 e307d04d3c4d
tests: killdaemons.py for checks reason when getting no process handle [ original upstream message ]
tests/killdaemons.py
--- a/tests/killdaemons.py	Fri Jan 17 21:13:20 2014 +0100
+++ b/tests/killdaemons.py	Wed Feb 12 15:38:59 2014 +0100
@@ -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)