summaryrefslogtreecommitdiff
path: root/scripts/Util.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-03-31 01:31:36 +0000
committerBenoit Foucher <benoit@zeroc.com>2017-03-31 01:31:36 +0000
commit7f94238dd3d2623e416fb1e8236e55848fc2c8f8 (patch)
tree36d16e6153ecf886f48befd99f12bb08d8427de6 /scripts/Util.py
parentFixed previous Util.py fix (diff)
downloadice-7f94238dd3d2623e416fb1e8236e55848fc2c8f8.tar.bz2
ice-7f94238dd3d2623e416fb1e8236e55848fc2c8f8.tar.xz
ice-7f94238dd3d2623e416fb1e8236e55848fc2c8f8.zip
Fixes for ICE-7012 - fixed some leaks in IceSSL/tests
Diffstat (limited to 'scripts/Util.py')
-rw-r--r--scripts/Util.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/Util.py b/scripts/Util.py
index d98a54c92bb..bea5b90c946 100644
--- a/scripts/Util.py
+++ b/scripts/Util.py
@@ -224,7 +224,7 @@ class Linux(Platform):
class Windows(Platform):
def getFilters(self, config):
- if isinstance(config, CppMapping.Config) and config.uwp:
+ if config.uwp:
return (["Ice/.*", "IceSSL/configuration"],
["Ice/background",
"Ice/echo",
@@ -460,6 +460,11 @@ class Mapping:
self.sprops = []
parseOptions(self, options, { "config" : "buildConfig",
"platform" : "buildPlatform" })
+
+ # Options bellow are not parsed by the base class by still
+ # initialized here for convenience (this avoid having to
+ # check the configuration type)
+ self.uwp = False
def __str__(self):
s = []
@@ -2386,7 +2391,7 @@ class Driver:
processController = iOSSimulatorProcessController
elif current.config.buildPlatform == "iphoneos":
processController = iOSDeviceProcessController
- elif isinstance(current.config, CppMapping.Config) and current.config.uwp:
+ elif current.config.uwp:
# No SSL server-side support in UWP.
if current.config.protocol in ["ssl", "wss"] and not isinstance(process, Client):
processController = LocalProcessController
@@ -2477,7 +2482,7 @@ class CppMapping(Mapping):
def getSSLProps(self, process, current):
props = Mapping.getSSLProps(self, process, current)
server = isinstance(process, Server)
- uwp = current.config.uwp if isinstance(current.config, CppMapping.Config) else False
+ uwp = current.config.uwp
props.update({
"IceSSL.CAs": "cacert.pem",