You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stop classifying valid program stderr as a compiler failure by substring #538
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.
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
fix: don't classify valid stderr as compiler failure (wavefnd#538)
fix: bound JSON nesting depth to prevent stack overflow (#540) (#546)