Skip Start_Disposed_ThrowsObjectDisposedException on Apple mobile platforms#126655
Skip Start_Disposed_ThrowsObjectDisposedException on Apple mobile platforms#126655kotlarmilos merged 1 commit intomainfrom
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.
|
@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
|
|
#126631 does the same... not a problem necessarily. |
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