From ef53ac8727ae5bc9d16e71ef4858d1038ab9686c Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Thu, 26 Sep 2013 13:02:30 +0200 Subject: [PATCH] [sdb] Fix a race in the sdb tests exposed by the recent threadpool changes. --- mcs/class/Mono.Debugger.Soft/Test/dtest.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mcs/class/Mono.Debugger.Soft/Test/dtest.cs b/mcs/class/Mono.Debugger.Soft/Test/dtest.cs index 68fb0d1bcde..1d6262af1a3 100644 --- a/mcs/class/Mono.Debugger.Soft/Test/dtest.cs +++ b/mcs/class/Mono.Debugger.Soft/Test/dtest.cs @@ -2267,8 +2267,13 @@ public class DebuggerTests while (invoke_results.Count < 2) { Thread.Sleep (100); } - AssertValue ("ABC", invoke_results [0]); - AssertValue (42, invoke_results [1]); + if (invoke_results [0] is PrimitiveValue) { + AssertValue ("ABC", invoke_results [1]); + AssertValue (42, invoke_results [0]); + } else { + AssertValue ("ABC", invoke_results [0]); + AssertValue (42, invoke_results [1]); + } } void invoke_multiple_cb (IAsyncResult ar) { -- 2.11.4.GIT