diff options
author | Matthew Newhook <matthew@zeroc.com> | 2015-03-18 12:58:16 -0230 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2015-03-18 12:58:16 -0230 |
commit | 9b7668c7c92cf9cb311fe444cdddb489cd2a219d (patch) | |
tree | 5016567c58c81f5654e9d01935e199c6bf4761d2 /demoscript/Ice/nested.py | |
parent | VS add-in & build updates: (diff) | |
download | ice-9b7668c7c92cf9cb311fe444cdddb489cd2a219d.tar.bz2 ice-9b7668c7c92cf9cb311fe444cdddb489cd2a219d.tar.xz ice-9b7668c7c92cf9cb311fe444cdddb489cd2a219d.zip |
Removed demos.
Moved demoscript to distribution.
Diffstat (limited to 'demoscript/Ice/nested.py')
-rw-r--r-- | demoscript/Ice/nested.py | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/demoscript/Ice/nested.py b/demoscript/Ice/nested.py deleted file mode 100644 index c402a5b72a3..00000000000 --- a/demoscript/Ice/nested.py +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env python -# ********************************************************************** -# -# Copyright (c) 2003-2015 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. -# -# ********************************************************************** - -import sys, signal - -def run(client, server): - sys.stdout.write("testing nested... ") - sys.stdout.flush() - client.sendline('1') - server.expect('1') - client.expect('.*for exit:') - client.sendline('2') - server.expect('2') - client.expect('1\n.*for exit:') - client.sendline('3') - server.expect('3\n1') - client.expect('2\n.*for exit:') - print("ok") - - sys.stdout.write("testing blocking... ") - sys.stdout.flush() - client.sendline('21') # This will cause a block. - server.expect('\n'.join(['13', '11', '9', '7', '5', '3'])) - client.expect('\n'.join(['12', '10', '8', '6', '4', '2'])) - client.expect('TimeoutException', timeout=3000) - server.expect('TimeoutException', timeout=3000) - print("ok") - - client.sendline('x') - client.waitTestSuccess() - - server.kill(signal.SIGINT) - server.waitTestSuccess() |