Repository navigation
Test runner: expect-stdout lines are the whole stdout, in order, once each (#1855) - #1895
Merged
Merged
Conversation
added 6 commits
September 29, 2026 14:40
…1855) Mechanical rewrite (a With tool over the runner's own captures) of the 14 fixtures that listed a subset of their lines, plus the five whose headers the runner never read: two `expect-run-output:` lines, two `//! N` lines that had lost their `expect-stdout:`, and an `expect-stdout-not:` the exact rule subsumes. No expectation changed meaning; each now pins every line once.
…ssage eagerly and the substring runner hid it (#1855)
…ogram runs and must exit 0 (#1855)
… each (#1855) `test_validate_output` passed when each expected line was a substring of the output: order, line boundaries and count were never checked, so `drop 1` passed on `drop 10`, a double drop's repeated line passed, and drops printed after `end` passed. Now the `expect-stdout` lines are compared with the program's stdout line for line; a failure names its class (a line missing, printed only inside a longer line, printed N times instead of M, out of order, or unlisted lines) and shows both sides around the first difference. `expect-stdout-contains:` keeps the fragment rule for output no run repeats and is refused beside `expect-stdout` or empty. A `//!` header line the runner does not read fails loudly (the corpus held `expect-run-output:`, `expect-stdout-not:`, `expect-check-pass` and bare `//! 65` lines nothing checked); tools/debug_drop.w's directives are recognised as another lane's. The selfhost smoke test proves each of the old silent passes now fails and the two green forms pass.
ehartford
force-pushed
the
fix-runner
branch
from
September 29, 2026 18:56
fbf5851 to
6925221
Compare
ehartford
marked this pull request as ready for review
September 29, 2026 18:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack #1898, layer 10. Closes #1855. The substring matcher hid #1864 (precondition_lazy.w; noted as a known issue in the fixture) and empty expectations that checked nothing; fixtures corrected to list their whole stdout in order.
expect-check-passwas never a directive;check-onlyis. Draft until the stack battery is green and posted.