Skip to content

test(realpath): make §7 display-spelling pin env-robust (#1783) - #1793

Merged
caomengxuan666 merged 1 commit into
mainfrom
fix/niu993-section7-pin-ci
Nov 16, 2026
Merged

caomengxuan666 merged 1 commit into
mainfrom
fix/niu993-section7-pin-ci

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Summary

  • The niu993_section7_all_emitters_share_display_spelling pin recomputed the expected /tmp-vs-/c/ spelling from tmp.path; on the CI runner the temp mount mapping and TempDir root don't line up, so the reconstruction mismatched while all three emitters actually agreed (failed on fix(ps): Cygwin listing face + -W/--windows (niubash#993 S5) #1786's merge run, realpath.niu993_section7... 1/4052).
  • Assert the real §7 contract instead: realpath and pwd print the identical display spelling, readlink -f appends /f, and the output is POSIX-shaped (leading /, no backslashes).

Test plan

  • winuxcmd-tests.exe --gtest_filter=realpath.niu993* — 1/1 pass
  • CI x64-default ctest leg passes on the merge run

Generated with Devin

…t reconstructed spelling

The pin recomputed the expected /tmp-vs-/c/ display from tmp.path; on the CI
runner the temp mount and TempDir root don't line up, so the reconstruction
mismatched even though all three emitters agreed. Assert the actual §7
contract instead: realpath == pwd output, readlink -f appends /f, no
backslashes. Fixes the x64-default ctest failure seen on #1786's merge run.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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