Skip tests that need RemoteExecutor (#81231)
authorŠimon Rozsíval <simon@rozsival.com>
Fri, 27 Jan 2023 10:11:26 +0000 (11:11 +0100)
committerGitHub <noreply@github.com>
Fri, 27 Jan 2023 10:11:26 +0000 (11:11 +0100)
src/libraries/System.Diagnostics.Process/tests/ProcessModuleTests.cs
src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs

index a5376fc..ba14e11 100644 (file)
@@ -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()
         {
index d763d73..a102fee 100644 (file)
@@ -550,7 +550,7 @@ namespace System.Diagnostics.Tests
             Assert.Throws<InvalidOperationException>(() => 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()
         {