Skip to content

Skip network-dependent std examples when local sockets are unavailable #455

Closed

Description

@LunaStev

Problem

The standard-library example runner treats an unavailable local socket environment as a program regression.

In a restricted environment, the full example audit compiled all examples but reported seven runtime failures because socket() returned EPERM. The test runner already has environment-aware handling for a network test, but the example runner does not share an equivalent mechanism.

Scope

  • Define lightweight metadata or a deterministic capability probe for examples that require local networking.
  • Mark environment-caused skips separately from compile failures and program failures.
  • Reuse existing test-runner detection where practical.
  • Keep the summary machine-readable and clear in CI logs.
  • Test the behavior with a fake runner or injected probe; tests must not require real network access.

Acceptance criteria

  • A sandbox that denies socket creation reports network examples as skipped, not failed.
  • A genuine compile or runtime regression in a network example still fails the command.
  • Normal unrestricted environments continue to execute the examples.

Activity

  1. added
    build
    good first issue
    needs testing
    cross-platform
    on Sep 3, 2026
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

    buildcross-platformgood first issueneeds testing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions