[interp] disable assemblyresolve_event6.exe
[mono.git] / mono / tests / appdomain-async-invoke.cs
index f6d004b9ddb4787009967c90553151b377e6d5e0..3e7894c06c78af34a529a63556042bddb8cd4da1 100644 (file)
@@ -11,10 +11,13 @@ public class Test : MarshalByRefObject {
     }
 
     ~Test () {
-           Console.WriteLine ("in test desctructor");
+           Console.WriteLine ("in test destructor");
            GetIntDelegate del = new GetIntDelegate (getInt);
            AsyncCallback ac = new AsyncCallback (async_callback);
-           del.BeginInvoke (ac, "bla");
+           if (del.BeginInvoke (ac, "bla") == null) {
+                   Console.WriteLine ("async result is null");
+                   Environment.Exit (1);
+           }
     }
 
     public int getInt () {