Patchwork [3,of,4] tests: killdaemons.py for checks reason when getting no process handle

login
register
mail settings
Submitter Simon Heimberg
Date Feb. 13, 2014, 9:29 p.m.
Message ID <2b97432d8b151b09df17.1392326969@lapsasi>
Download mbox | patch
Permalink /patch/3642/
State Accepted
Commit 0cf1c8c452d3db74c8cd56f3475cf6e57a6b799f
Headers show

Comments

Simon Heimberg - Feb. 13, 2014, 9:29 p.m.
# HG changeset patch
# User Simon Heimberg <simohe@besonet.ch>
# Date 1392215939 -3600
#      Wed Feb 12 15:38:59 2014 +0100
# Node ID 2b97432d8b151b09df176d0b961b276046ecda4d
# Parent  86a6ffe73f730b6b8f9d39d6b81e866ce4abadb2
tests: killdaemons.py for checks reason when getting no process handle

Patch

diff -r 86a6ffe73f73 -r 2b97432d8b15 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)