summaryrefslogtreecommitdiff
path: root/cs/test/Ice/exceptions/Client.cs
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2004-03-29 03:40:57 +0000
committerMichi Henning <michi@zeroc.com>2004-03-29 03:40:57 +0000
commita766495f65576d8e2e9a6eacd00c25c85547115d (patch)
tree4a22f9c62e21da98894f8df0fe75b5fbda90b266 /cs/test/Ice/exceptions/Client.cs
parentRemoved warning about unused variable. (diff)
downloadice-a766495f65576d8e2e9a6eacd00c25c85547115d.tar.bz2
ice-a766495f65576d8e2e9a6eacd00c25c85547115d.tar.xz
ice-a766495f65576d8e2e9a6eacd00c25c85547115d.zip
*** empty log message ***
Diffstat (limited to 'cs/test/Ice/exceptions/Client.cs')
-rwxr-xr-xcs/test/Ice/exceptions/Client.cs57
1 files changed, 57 insertions, 0 deletions
diff --git a/cs/test/Ice/exceptions/Client.cs b/cs/test/Ice/exceptions/Client.cs
new file mode 100755
index 00000000000..3bd99617f89
--- /dev/null
+++ b/cs/test/Ice/exceptions/Client.cs
@@ -0,0 +1,57 @@
+// **********************************************************************
+//
+// Copyright (c) 2003
+// ZeroC, Inc.
+// Billerica, MA, USA
+//
+// All Rights Reserved.
+//
+// Ice is free software; you can redistribute it and/or modify it under
+// the terms of the GNU General Public License version 2 as published by
+// the Free Software Foundation.
+//
+// **********************************************************************
+
+public class Client
+{
+ private static int
+ run(string[] args, Ice.Communicator communicator)
+ {
+ ThrowerPrx thrower = AllTests.allTests(communicator, false);
+ thrower.shutdown();
+ return 0;
+ }
+
+ public static void
+ Main(string[] args)
+ {
+ int status = 0;
+ Ice.Communicator communicator = null;
+
+ try
+ {
+ communicator = Ice.Util.initialize(ref args);
+ status = run(args, communicator);
+ }
+ catch(System.Exception ex)
+ {
+ System.Console.WriteLine(ex);
+ status = 1;
+ }
+
+ if(communicator != null)
+ {
+ try
+ {
+ communicator.destroy();
+ }
+ catch(Ice.LocalException ex)
+ {
+ System.Console.WriteLine(ex);
+ status = 1;
+ }
+ }
+
+ System.Environment.Exit(status);
+ }
+}