Skip to content

Fix sort -V unit test hang#8

Open
kelp wants to merge 1 commit intoaudit/red-testsfrom
fix/sort-V-test-hang
Open

Fix sort -V unit test hang#8
kelp wants to merge 1 commit intoaudit/red-testsfrom
fix/sort-V-test-hang

Conversation

@kelp
Copy link
Copy Markdown
Owner

@kelp kelp commented Mar 29, 2026

Summary

  • Remove the obsolete "sort -V shows version" unit test that hangs because -V was remapped from --version to --version-sort
  • The "sort --version shows version" test already covers version output
  • With -V now meaning version-sort, passing it with no files causes stdin read, hanging the test suite

Test plan

  • timeout 300 zig build test --summary all completes with no sort hangs (1915/1939 pass; the one failure is a pre-existing mv test)
  • just it-util sort passes all 45 integration tests
  • Audit tests F10, F25, F26 unmodified and passing

-V was remapped from --version to --version-sort. The old
test passed -V with no files, causing stdin read and a hang.
The --version test already covers version output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant