From e9ce55b5d6f4be3f6ed4a203a6902bfb2efa0027 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Wed, 12 Oct 2011 07:19:30 +0200 Subject: [PATCH] Fix a race in an sdb test --- mcs/class/Mono.Debugger.Soft/Test/dtest.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mcs/class/Mono.Debugger.Soft/Test/dtest.cs b/mcs/class/Mono.Debugger.Soft/Test/dtest.cs index 382671183f1..37098a5e81f 100644 --- a/mcs/class/Mono.Debugger.Soft/Test/dtest.cs +++ b/mcs/class/Mono.Debugger.Soft/Test/dtest.cs @@ -1935,16 +1935,16 @@ public class DebuggerTests vm.Resume (); } - // Check that the invoke frames are no longer valid - AssertThrows (delegate { - invoke_frame.GetThis (); - }); - lock (wait) { if (!finished) Monitor.Wait (wait); } + // Check that the invoke frames are no longer valid + AssertThrows (delegate { + invoke_frame.GetThis (); + }); + // Check InvokeOptions.DisableBreakpoints flag o.InvokeMethod (e.Thread, m, null, InvokeOptions.DisableBreakpoints); } -- 2.25.1