Skip to content

ProcessTests.Start_Disposed_ThrowsObjectDisposedException fails on iOS/tvOS/MacCatalyst #126654

Closed

Description

@steveisok

Description

ProcessTests.Start_Disposed_ThrowsObjectDisposedException fails deterministically on all Apple mobile platforms (iOS, tvOS, MacCatalyst) across both CoreCLR and Mono.

Error

Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.ObjectDisposedException)
Actual:   typeof(System.PlatformNotSupportedException)
---- System.PlatformNotSupportedException : Operation is not supported on this platform.
   at System.Diagnostics.Process.Start()

Root Cause

Process.Start() on iOS/tvOS/MacCatalyst throws PlatformNotSupportedException (process launching is unsupported) before checking disposal state. The test expects ObjectDisposedException which never fires.

Impact

Fails in 7 legs of runtime-extra-platforms rolling builds (iossimulator-x64/arm64, tvos-arm64 across CoreCLR, Mono, and Debug), contributing to 100% rolling build failure rate.

Proposed Fix

Add [SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst, "Process.Start() is not supported on iOS, tvOS, and MacCatalyst.")] — consistent with the pattern used by 20+ other tests in the same file.

Build Reference

Build 1369438 — runtime-extra-platforms rolling, main branch, 2026-04-08.

Related: #126455 (covered ProcessHandlesTests but not this test)

Activity

  1. dotnet-policy-service commented on Apr 8, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'os-ios': @vitek-karas, @kotlarmilos, @steveisok, @akoeplinger
    See info in area-owners.md if you want to be subscribed.

  2. added
    untriaged
    on Apr 8, 2026
  3. dotnet-policy-service commented on Apr 8, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'os-tvos': @vitek-karas, @kotlarmilos, @steveisok, @akoeplinger
    See info in area-owners.md if you want to be subscribed.

  4. dotnet-policy-service commented on Apr 8, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'os-maccatalyst': @vitek-karas, @kotlarmilos, @steveisok, @akoeplinger
    See info in area-owners.md if you want to be subscribed.

  5. dotnet-policy-service commented on Apr 8, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/area-system-diagnostics-process
    See info in area-owners.md if you want to be subscribed.

  6. added a commit that references this issue on Apr 8, 2026
    9d5a336
  7. added a commit that references this issue on Apr 9, 2026
    4004e34
  8. removed
    untriaged
    on Apr 9, 2026
  9. locked and limited conversation to collaborators on May 10, 2026
  10. added a commit that references this issue on Jul 15, 2026
    f169496
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions