Skip to content

Fix the two Linux tests the inline key change broke - #765

Merged
SimonCropp merged 1 commit into
mainfrom
inline-key-linux
Aug 15, 2026
Merged

Fix the two Linux tests the inline key change broke#765
SimonCropp merged 1 commit into
mainfrom
inline-key-linux

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

Both encoded the folding that is now platform dependent, and both are in DiffEngineViewer.Tests, which is the one test project the Linux legs of CI build. I checked DiffEngine.Tests for this and stopped there.

EnqueueKeyIgnoresPathCase asserts that two paths differing only in case are one entry, which is true where the file system says so and false on Linux. It is pinned to Windows now, with the Linux half beside it asserting the two entries that platform should give.

IpcTests.List snapshotted keys derived from mixed case paths, so the snapshot said which platform it ran on. Its paths are lower case now, so the key is the same text everywhere and the snapshot is back to pinning the shape of a listing.

Checked by forcing the folding off and running the viewer tests: List passes, and two case-differing paths do produce the two entries the new test expects.

Both encoded the folding that is now platform dependent, and both are in
DiffEngineViewer.Tests, which is the one test project the Linux legs of
CI build. I checked DiffEngine.Tests for this and stopped there.

EnqueueKeyIgnoresPathCase asserts that two paths differing only in case
are one entry, which is true where the file system says so and false on
Linux. It is pinned to Windows now, with the Linux half beside it
asserting the two entries that platform should give.

IpcTests.List snapshotted keys derived from mixed case paths, so the
snapshot said which platform it ran on. Its paths are lower case now, so
the key is the same text everywhere and the snapshot is back to pinning
the shape of a listing.

Checked by forcing the folding off and running the viewer tests: List
passes, and two case-differing paths do produce the two entries the new
test expects.
@SimonCropp
SimonCropp merged commit 7b04b65 into main Aug 15, 2026
8 of 9 checks passed
@SimonCropp
SimonCropp deleted the inline-key-linux branch August 15, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant