X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Ftests%2Ffinalizer-exception.cs;h=71f4b4cc20933647e7fcc1df7d36407ec6261ae7;hb=b3aa48281e8c3c3aeb525ededa0653bcb668a25b;hp=29489ad49467e599b7a27a9431597fa484d858e3;hpb=5ad1099341581dee94f77b32db728918e90fa64f;p=mono.git diff --git a/mono/tests/finalizer-exception.cs b/mono/tests/finalizer-exception.cs index 29489ad4946..71f4b4cc209 100644 --- a/mono/tests/finalizer-exception.cs +++ b/mono/tests/finalizer-exception.cs @@ -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 ();