diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-03-23 15:29:25 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-03-23 15:29:25 +0100 |
commit | 1597a75419cd8049252cfbca6fce6ae95ef8b2c7 (patch) | |
tree | 2b2c858df1dbe68c1d576cae06c4713fd2ad5c40 /scripts/tests/Ice/objects.py | |
parent | Use Ice\None with PHP namespace mapping (diff) | |
download | ice-1597a75419cd8049252cfbca6fce6ae95ef8b2c7.tar.bz2 ice-1597a75419cd8049252cfbca6fce6ae95ef8b2c7.tar.xz ice-1597a75419cd8049252cfbca6fce6ae95ef8b2c7.zip |
Fix for ICE-7125 - Added support for Ice.ClassGraphDepthMax
Diffstat (limited to 'scripts/tests/Ice/objects.py')
-rw-r--r-- | scripts/tests/Ice/objects.py | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/scripts/tests/Ice/objects.py b/scripts/tests/Ice/objects.py index 3e77deee0a8..8f9460e3a27 100644 --- a/scripts/tests/Ice/objects.py +++ b/scripts/tests/Ice/objects.py @@ -7,10 +7,24 @@ # # ********************************************************************** +# +# Use a server stack size of 512KB, this is in particular important for Java +# servers which don't implement Ice.ClassGraphDepthMax and which could cause +# a client stack overflow if the client stack is too small compared to the +# Java server stack. +# +class ObjectClientServerTestCase(ClientServerTestCase): + + def getProps(self, process, current): + props = ClientServerTestCase.getProps(self, process, current) + if isinstance(process, Server) and not isinstance(process, EchoServer): + props["Ice.ThreadPool.Server.StackSize"] = 512 * 1024 + return props + testcases = [ - ClientServerTestCase("client/server with compact format"), - ClientServerTestCase("client/server with sliced format", props={ "Ice.Default.SlicedFormat" : True }), - ClientServerTestCase("client/server with 1.0 encoding", props={ "Ice.Default.EncodingVersion" : "1.0" }), + ObjectClientServerTestCase("client/server with compact format"), + ObjectClientServerTestCase("client/server with sliced format", props = {"Ice.Default.SlicedFormat" : True}), + ObjectClientServerTestCase("client/server with 1.0 encoding", props = {"Ice.Default.EncodingVersion" : "1.0"}), ] if Mapping.getByPath(__name__).hasSource("Ice/objects", "collocated"): |