diff options
Diffstat (limited to 'cpp/config/TestUtil.py')
-rw-r--r-- | cpp/config/TestUtil.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/config/TestUtil.py b/cpp/config/TestUtil.py index 0c5e2cb33fd..9a0be8007b5 100644 --- a/cpp/config/TestUtil.py +++ b/cpp/config/TestUtil.py @@ -36,7 +36,10 @@ def killServers(): global serverPids for pid in serverPids: - if os.name == "nt": + # + # Does os.kill work for cygwin? If so this test can be changed. + # + if sys.platform == "cygwin" or sys.platform == "win32": import win32api handle = win32api.OpenProcess(1, 0, pid) return (0 != win32api.TerminateProcess(handle, 0)) |