diff options
Diffstat (limited to 'py/test/Ice/slicing/exceptions/Client.py')
-rw-r--r-- | py/test/Ice/slicing/exceptions/Client.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/py/test/Ice/slicing/exceptions/Client.py b/py/test/Ice/slicing/exceptions/Client.py new file mode 100644 index 00000000000..84df22c79fd --- /dev/null +++ b/py/test/Ice/slicing/exceptions/Client.py @@ -0,0 +1,31 @@ +# ********************************************************************** +# +# Copyright (c) 2003-2004 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, Ice, AllTests + +def run(args, communicator): + Test = AllTests.allTests(communicator) + Test.shutdown() + return True + +try: + communicator = Ice.initialize(sys.argv) + status = run(sys.argv, communicator) +except Ice.Exception, ex: + print ex + status = False + +if communicator: + try: + communicator.destroy() + except Ice.Exception, ex: + print ex + status = False + +sys.exit(not status) |