Switch to compiler-tester
[mono.git] / mcs / tests / test-231.cs
index da679adea6188bf5857b4c9cf529a1f6a127e76a..07e217a26620dcbec0a9b84e0cd727ab8f1cb45b 100644 (file)
@@ -1,20 +1,22 @@
 class T {
-       static void Main ()
+       static int ret_code = 0;
+    
+       static int Main ()
        {
                try {
                        T t = null;
                        t.Foo ();
                } catch {
-                       System.Environment.Exit (0);
+                       return ret_code;
                }
-               
-               System.Environment.Exit (1);
+               ret_code = 1;
+               return ret_code;
        }
        
        void Foo () {
                if (this == null) {
                        System.Console.WriteLine ("This isnt anything!?!?");
-                       System.Environment.Exit (1);
+                       ret_code = 1;
                }
        }
 }
\ No newline at end of file