summaryrefslogtreecommitdiff
path: root/scripts/tests/Ice/binding.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-01-18 21:35:20 +0100
committerBenoit Foucher <benoit@zeroc.com>2017-01-18 21:35:20 +0100
commitf2758d6bc5396a3bff29a4a17ee2b1554d841def (patch)
tree4c35dda49259a109b96d6c7693f33e11421bbaca /scripts/tests/Ice/binding.py
parentFixed C++11 build failure (diff)
downloadice-f2758d6bc5396a3bff29a4a17ee2b1554d841def.tar.bz2
ice-f2758d6bc5396a3bff29a4a17ee2b1554d841def.tar.xz
ice-f2758d6bc5396a3bff29a4a17ee2b1554d841def.zip
Added missing binding.py file
Diffstat (limited to 'scripts/tests/Ice/binding.py')
-rw-r--r--scripts/tests/Ice/binding.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/tests/Ice/binding.py b/scripts/tests/Ice/binding.py
new file mode 100644
index 00000000000..cfc2c9c4314
--- /dev/null
+++ b/scripts/tests/Ice/binding.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# **********************************************************************
+#
+# Copyright (c) 2003-2016 ZeroC, Inc. All rights reserved.
+#
+# This copy of Ice is licensed to you under the terms described in the
+# ICE_LICENSE file included in this distribution.
+#
+# **********************************************************************
+
+def setlimits():
+ if not isinstance(platform, Windows):
+ #
+ # Set a low limit for the number of available file descriptors. This is needed for the max FD test
+ # which could otherwise potentially allocate many file descriptors on the system.
+ #
+ import resource
+ resource.setrlimit(resource.RLIMIT_NOFILE, (92, 92))
+
+TestSuite(__name__, [ClientServerTestCase(server=Server(preexec_fn=setlimits))]) \ No newline at end of file