summaryrefslogtreecommitdiff
path: root/csharp/test/Ice/slicing/exceptions/Client.cs
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/test/Ice/slicing/exceptions/Client.cs')
-rw-r--r--csharp/test/Ice/slicing/exceptions/Client.cs37
1 files changed, 5 insertions, 32 deletions
diff --git a/csharp/test/Ice/slicing/exceptions/Client.cs b/csharp/test/Ice/slicing/exceptions/Client.cs
index a89ce7c02e1..bbbedc65880 100644
--- a/csharp/test/Ice/slicing/exceptions/Client.cs
+++ b/csharp/test/Ice/slicing/exceptions/Client.cs
@@ -10,45 +10,18 @@
using Test;
using System;
-public class Client
+public class Client : TestCommon.Application
{
- private static int run(string[] args, Ice.Communicator communicator)
+ public override int run(string[] args)
{
- TestIntfPrx test = AllTests.allTests(communicator, false);
+ TestIntfPrx test = AllTests.allTests(this, false);
test.shutdown();
return 0;
}
public static int Main(string[] args)
{
- int status = 0;
- Ice.Communicator communicator = null;
-
- try
- {
- Ice.InitializationData data = new Ice.InitializationData();
- communicator = Ice.Util.initialize(ref args, data);
- status = run(args, communicator);
- }
- catch(Exception ex)
- {
- Console.Error.WriteLine(ex);
- status = 1;
- }
-
- if(communicator != null)
- {
- try
- {
- communicator.destroy();
- }
- catch(Ice.LocalException ex)
- {
- Console.Error.WriteLine(ex);
- status = 1;
- }
- }
-
- return status;
+ Client app = new Client();
+ return app.runmain(args);
}
}