From: Šimon Rozsíval Date: Fri, 27 Jan 2023 10:11:26 +0000 (+0100) Subject: Skip tests that need RemoteExecutor (#81231) X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~4398 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=102225382d360ac34c6c60df58f4a87e9702edef;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Skip tests that need RemoteExecutor (#81231) --- diff --git a/src/libraries/System.Diagnostics.Process/tests/ProcessModuleTests.cs b/src/libraries/System.Diagnostics.Process/tests/ProcessModuleTests.cs index a5376fc..ba14e11 100644 --- a/src/libraries/System.Diagnostics.Process/tests/ProcessModuleTests.cs +++ b/src/libraries/System.Diagnostics.Process/tests/ProcessModuleTests.cs @@ -30,7 +30,7 @@ namespace System.Diagnostics.Tests } } - [Fact] + [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))] [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "libproc is not supported on iOS/tvOS")] public void Modules_Get_ContainsHostFileName() { diff --git a/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs b/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs index d763d73..a102fee 100644 --- a/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs +++ b/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs @@ -550,7 +550,7 @@ namespace System.Diagnostics.Tests Assert.Throws(() => process.MachineName); } - [Fact] + [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))] [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "libproc is not supported on iOS/tvOS")] public void TestMainModule() { @@ -1396,7 +1396,7 @@ namespace System.Diagnostics.Tests Assert.True(process.WaitForExit(WaitInMS)); } - [Fact] + [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))] [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "libproc is not supported on iOS/tvOS")] public void StartInfo_SetGet_ReturnsExpected() {