From 19ebb84311adc207bcd91312a42c46c2f79670ff Mon Sep 17 00:00:00 2001 From: Bill Holmes Date: Thu, 9 Apr 2009 20:36:38 +0000 Subject: [PATCH] 2009-04-09 Bill Holmes * finalizer-abort.cs, finalizer-exception.cs, finalizer-exit.cs : Adding a sleep to the waiting thread to give Mono on Windows an opportunity to interrupt the thread via QueueUserAPC. Contributed under MIT/X11 license. svn path=/trunk/mono/; revision=131423 --- mono/tests/ChangeLog | 8 ++++++++ mono/tests/finalizer-abort.cs | 1 + mono/tests/finalizer-exception.cs | 1 + mono/tests/finalizer-exit.cs | 1 + 4 files changed, 11 insertions(+) diff --git a/mono/tests/ChangeLog b/mono/tests/ChangeLog index f2ae5dfb8f9bf..aa583161c4125 100644 --- a/mono/tests/ChangeLog +++ b/mono/tests/ChangeLog @@ -1,3 +1,11 @@ +2009-04-09 Bill Holmes + + * finalizer-abort.cs, finalizer-exception.cs, finalizer-exit.cs : + Adding a sleep to the waiting thread to give Mono on Windows an + opportunity to interrupt the thread via QueueUserAPC. + + Contributed under MIT/X11 license. + 2009-03-31 Mark Probst * critical-finalizers.cs: Test case for critical finalizers. diff --git a/mono/tests/finalizer-abort.cs b/mono/tests/finalizer-abort.cs index 9b0c0afce8882..8506ced5131dd 100644 --- a/mono/tests/finalizer-abort.cs +++ b/mono/tests/finalizer-abort.cs @@ -36,6 +36,7 @@ public class foo { while(true) { foo instance = new foo(); list.Add (new WeakReference(instance)); + Thread.Sleep (0); } return 1; } diff --git a/mono/tests/finalizer-exception.cs b/mono/tests/finalizer-exception.cs index ef0b4f6e13ab5..595bdebe3af3d 100644 --- a/mono/tests/finalizer-exception.cs +++ b/mono/tests/finalizer-exception.cs @@ -31,6 +31,7 @@ public class foo { while(true) { foo instance = new foo(); list.Add (new WeakReference(instance)); + Thread.Sleep (0); } return 1; } diff --git a/mono/tests/finalizer-exit.cs b/mono/tests/finalizer-exit.cs index 1f75d4b47aa6b..89c1f8c796b9f 100644 --- a/mono/tests/finalizer-exit.cs +++ b/mono/tests/finalizer-exit.cs @@ -23,6 +23,7 @@ public class foo { while(true) { foo instance = new foo(); list.Add (new WeakReference(instance)); + Thread.Sleep (0); } return 1; }