Skip to content

Stop classifying valid program stderr as a compiler failure by substring #538

Closed

Description

@LunaStev

run_and_classify checks looks_like_fail(result.stderr) before comparing the expected exit status. Any stderr containing phrases such as stack overflow, SyntaxError, or error[E is rejected, even when the program deliberately prints that text and exits with the expected status. This prevents reliable tests of diagnostics, log processing and error-reporting programs.

The runner currently receives combined compiler/child output from its command, so removing the heuristic must not hide a compiler failure that is incorrectly reported as success.

Source evidence at the head of #520:

Acceptance:

  • Separate producer failure status from legitimate child output, or otherwise establish a reliable classification path before removing substring matching.
  • Cover a successful child printing each sentinel, a deliberate expected-nonzero result, and a genuine compiler failure.
  • Keep unexpected exits and timeouts failing.
  • Keep expected-output fixture support optional; fixing false failures must not depend on introducing fixtures for every program.

Related: #369 adds stdout/stderr expectations; this issue fixes the existing unconditional false-failure heuristic.

Audit status: identified by static source inspection; the scenarios above have not been executed during this audit. The permalink fixes the reviewed revision; this report does not claim the defect was introduced by #520.

Activity

  1. added
    bug
    help wanted
    on Sep 8, 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

    bughelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions