Skip to content

Commit 1022253

Browse files
Skip tests that need RemoteExecutor (#81231)
1 parent 9e7d3c0 commit 1022253

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/libraries/System.Diagnostics.Process/tests/ProcessModuleTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void TestModuleProperties()
3030
}
3131
}
3232

33-
[Fact]
33+
[ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
3434
[SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "libproc is not supported on iOS/tvOS")]
3535
public void Modules_Get_ContainsHostFileName()
3636
{

src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ public void MachineName_GetNotStarted_ThrowsInvalidOperationException()
550550
Assert.Throws<InvalidOperationException>(() => process.MachineName);
551551
}
552552

553-
[Fact]
553+
[ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
554554
[SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "libproc is not supported on iOS/tvOS")]
555555
public void TestMainModule()
556556
{
@@ -1396,7 +1396,7 @@ public void StartInfo_SetOnRunningProcess_ThrowsInvalidOperationException()
13961396
Assert.True(process.WaitForExit(WaitInMS));
13971397
}
13981398

1399-
[Fact]
1399+
[ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
14001400
[SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "libproc is not supported on iOS/tvOS")]
14011401
public void StartInfo_SetGet_ReturnsExpected()
14021402
{

0 commit comments

Comments
 (0)