From 9d5a3360ebec1c0f519ace256a59484352a3571b Mon Sep 17 00:00:00 2001 From: Steve Pfister Date: Wed, 8 Apr 2026 14:56:18 -0400 Subject: [PATCH] Skip Start_Disposed_ThrowsObjectDisposedException on Apple mobile platforms Process.Start() on iOS/tvOS/MacCatalyst throws PlatformNotSupportedException (unsupported platform) before checking disposal state, so the test's ObjectDisposedException assertion never fires. Fixes #126654 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs b/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs index 78c2169536a01e..4d1b5cc1d63eb1 100644 --- a/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs +++ b/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs @@ -1792,6 +1792,7 @@ public void Start_RedirectStandardOutput_StartAgain_DoesntThrow() } [Fact] + [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst, "Process.Start() is not supported on iOS, tvOS, and MacCatalyst.")] public void Start_Disposed_ThrowsObjectDisposedException() { var process = new Process();