summaryrefslogtreecommitdiff
path: root/cpp/config/TestUtil.py
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2001-12-05 16:49:38 +0000
committerMatthew Newhook <matthew@zeroc.com>2001-12-05 16:49:38 +0000
commit7afc2b9dc4a4d8847f871c084fc7d70ede965853 (patch)
treed7dda67d15e36408bd7a893fa981691cb1c166f0 /cpp/config/TestUtil.py
parentUpdate IceStorm for WIN32 build. (diff)
downloadice-7afc2b9dc4a4d8847f871c084fc7d70ede965853.tar.bz2
ice-7afc2b9dc4a4d8847f871c084fc7d70ede965853.tar.xz
ice-7afc2b9dc4a4d8847f871c084fc7d70ede965853.zip
use sys.platform, not os.name
Diffstat (limited to 'cpp/config/TestUtil.py')
-rw-r--r--cpp/config/TestUtil.py5
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))