summaryrefslogtreecommitdiff
path: root/cs/test/Ice/operations/Client.cs
diff options
context:
space:
mode:
Diffstat (limited to 'cs/test/Ice/operations/Client.cs')
-rwxr-xr-xcs/test/Ice/operations/Client.cs114
1 files changed, 57 insertions, 57 deletions
diff --git a/cs/test/Ice/operations/Client.cs b/cs/test/Ice/operations/Client.cs
index a25f9994190..e4d323a33e3 100755
--- a/cs/test/Ice/operations/Client.cs
+++ b/cs/test/Ice/operations/Client.cs
@@ -13,70 +13,70 @@ public class Client
{
private static int run(String[] args, Ice.Communicator communicator)
{
- Test.MyClassPrx myClass = AllTests.allTests(communicator, false);
-
- Console.Out.Write("testing server shutdown... ");
- Console.Out.Flush();
- myClass.shutdown();
- try
- {
- myClass.opVoid();
- throw new System.Exception();
- }
- catch(Ice.LocalException)
- {
- Console.Out.WriteLine("ok");
- }
-
- return 0;
+ Test.MyClassPrx myClass = AllTests.allTests(communicator, false);
+
+ Console.Out.Write("testing server shutdown... ");
+ Console.Out.Flush();
+ myClass.shutdown();
+ try
+ {
+ myClass.opVoid();
+ throw new System.Exception();
+ }
+ catch(Ice.LocalException)
+ {
+ Console.Out.WriteLine("ok");
+ }
+
+ return 0;
}
public static void Main(string[] args)
{
- int status = 0;
- Ice.Communicator communicator = null;
-
- try
- {
- Ice.InitializationData initData = new Ice.InitializationData();
- initData.properties = Ice.Util.createProperties(ref args);
- initData.properties.setProperty("Ice.ThreadPool.Client.Size", "2"); // For nested AMI.
- initData.properties.setProperty("Ice.ThreadPool.Client.SizeWarn", "0");
+ int status = 0;
+ Ice.Communicator communicator = null;
+
+ try
+ {
+ Ice.InitializationData initData = new Ice.InitializationData();
+ initData.properties = Ice.Util.createProperties(ref args);
+ initData.properties.setProperty("Ice.ThreadPool.Client.Size", "2"); // For nested AMI.
+ initData.properties.setProperty("Ice.ThreadPool.Client.SizeWarn", "0");
- //
- // We must set MessageSizeMax to an explicit values,
- // because we run tests to check whether
- // Ice.MemoryLimitException is raised as expected.
- //
- initData.properties.setProperty("Ice.MessageSizeMax", "100");
+ //
+ // We must set MessageSizeMax to an explicit values,
+ // because we run tests to check whether
+ // Ice.MemoryLimitException is raised as expected.
+ //
+ initData.properties.setProperty("Ice.MessageSizeMax", "100");
- //
- // We don't want connection warnings because of the timeout test.
- //
- initData.properties.setProperty("Ice.Warn.Connections", "0");
+ //
+ // We don't want connection warnings because of the timeout test.
+ //
+ initData.properties.setProperty("Ice.Warn.Connections", "0");
- communicator = Ice.Util.initialize(ref args, initData);
- status = run(args, communicator);
- }
- catch(System.Exception ex)
- {
- Console.Error.WriteLine(ex);
- status = 1;
- }
-
- if(communicator != null)
- {
- try
- {
- communicator.destroy();
- }
- catch(Ice.LocalException ex)
- {
- Console.Error.WriteLine(ex);
- status = 1;
- }
- }
-
+ communicator = Ice.Util.initialize(ref args, initData);
+ status = run(args, communicator);
+ }
+ catch(System.Exception ex)
+ {
+ Console.Error.WriteLine(ex);
+ status = 1;
+ }
+
+ if(communicator != null)
+ {
+ try
+ {
+ communicator.destroy();
+ }
+ catch(Ice.LocalException ex)
+ {
+ Console.Error.WriteLine(ex);
+ status = 1;
+ }
+ }
+
if(status != 0)
{
System.Environment.Exit(status);