[runtime] Synthesize IList and IReadOnlyList for the element type of enum errays...
[mono.git] / mono / tests / finalizer-exception.cs
index 29489ad49467e599b7a27a9431597fa484d858e3..71f4b4cc20933647e7fcc1df7d36407ec6261ae7 100644 (file)
@@ -18,7 +18,8 @@ public class FinalizerException {
                int* values = stackalloc int [20];
                aptr = new IntPtr (values);
                if (depth <= 0) {
-                       new FinalizerException ();
+                       for (int i = 0; i < 10; i++)
+                               new FinalizerException ();
                        return;
                }
                MakeException (depth - 1);
@@ -30,7 +31,9 @@ public class FinalizerException {
                        Environment.Exit (0);
                };
 
-               MakeException (1024);
+               var t = new Thread (delegate () { MakeException (1024); });
+               t.Start ();
+               t.Join ();
 
                GC.Collect ();
                GC.WaitForPendingFinalizers ();