Uh oh!
There was an error while loading. Please reload this page.
Skip Start_Disposed_ThrowsObjectDisposedException on Apple mobile platforms - #126655
Conversation
…tforms 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>
Tagging subscribers to this area: @dotnet/area-system-diagnostics-process |
There was a problem hiding this comment.
Pull request overview
Skips ProcessTests.Start_Disposed_ThrowsObjectDisposedException on Apple mobile platforms where Process.Start() is unsupported and deterministically throws PlatformNotSupportedException before disposal checks, causing consistent test failures in runtime-extra-platforms.
Changes:
- Added
[SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst, ...)]toStart_Disposed_ThrowsObjectDisposedException.
steveisok
commented
Apr 8, 2026
@kotlarmilos should this not apply to maccatalyst? |
🤖 Copilot Code Review — PR #126655Note This review was generated by GitHub Copilot. Holistic AssessmentMotivation: The problem is real and verified — Approach: Adding Summary: Detailed Findings
|
vitek-karas
commented
Apr 9, 2026
#126631 does the same... not a problem necessarily. |
Uh oh!
There was an error while loading. Please reload this page.
Fix
Adds
[SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]toStart_Disposed_ThrowsObjectDisposedException.Why
Process.Start()on iOS/tvOS/MacCatalyst throwsPlatformNotSupportedException(process launching is unsupported) before checking disposal state. The test expectsObjectDisposedExceptionwhich never fires, causing a deterministic failure across 7 legs in everyruntime-extra-platformsrolling build.This follows the same
[SkipOnPlatform]pattern used by 20+ other tests in the same file.Fixes#126654