From: Juan Hoyos Date: Thu, 5 Aug 2021 18:47:28 +0000 (-0700) Subject: Prevent queueing workitems in debuggee compilation on prebuild path (#2480) X-Git-Tag: submit/tizen/20220302.040122~21^2^2~172 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=275b8d8a1613dc376f1b55d6726c16c4e4e19a60;p=platform%2Fcore%2Fdotnet%2Fdiagnostics.git Prevent queueing workitems in debuggee compilation on prebuild path (#2480) --- diff --git a/src/Microsoft.Diagnostics.TestHelpers/PrebuiltDebuggeeCompiler.cs b/src/Microsoft.Diagnostics.TestHelpers/PrebuiltDebuggeeCompiler.cs index 0c6cb51f0..c7544da46 100644 --- a/src/Microsoft.Diagnostics.TestHelpers/PrebuiltDebuggeeCompiler.cs +++ b/src/Microsoft.Diagnostics.TestHelpers/PrebuiltDebuggeeCompiler.cs @@ -32,7 +32,7 @@ namespace Microsoft.Diagnostics.TestHelpers public Task Execute(ITestOutputHelper output) { - return Task.Factory.StartNew(() => new DebuggeeConfiguration(_sourcePath, _binaryPath, _binaryExePath)); + return Task.FromResult(new DebuggeeConfiguration(_sourcePath, _binaryPath, _binaryExePath)); } } } \ No newline at end of file diff --git a/src/Microsoft.Diagnostics.TestHelpers/SdkPrebuiltDebuggeeCompiler.cs b/src/Microsoft.Diagnostics.TestHelpers/SdkPrebuiltDebuggeeCompiler.cs index 53fd4187f..67e374a0f 100644 --- a/src/Microsoft.Diagnostics.TestHelpers/SdkPrebuiltDebuggeeCompiler.cs +++ b/src/Microsoft.Diagnostics.TestHelpers/SdkPrebuiltDebuggeeCompiler.cs @@ -31,7 +31,7 @@ namespace Microsoft.Diagnostics.TestHelpers public Task Execute(ITestOutputHelper output) { - return Task.Factory.StartNew(() => new DebuggeeConfiguration(_sourcePath, _binaryPath, _binaryExePath)); + return Task.FromResult(new DebuggeeConfiguration(_sourcePath, _binaryPath, _binaryExePath)); } } } \ No newline at end of file