Repository navigation
#1221: two path-format test failures on Windows - #1254
Merged
Merged
Conversation
vangel76
force-pushed
the
fix-1221-windows-test-paths
branch
2 times, most recently
from
October 13, 2026 12:01
1ba3b14 to
9f517e5
Compare
Problem: on Windows two tests failed on main although the app is fine; they assumed macOS/Linux path formats. Fix: the CLI test strips the verbatim path prefix that canonicalize adds on Windows (a child's current_dir() never reports it); the host sink test uses a drive-letter path on Windows (a path rooted without a drive is joined to the home drive by the engine, the test expected the current drive). Test code only. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
vangel76
force-pushed
the
fix-1221-windows-test-paths
branch
from
October 13, 2026 12:36
9f517e5 to
89ae151
Compare
Member
|
Merged, thank you @vangel76! Checked on Windows 11 against current |
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.
Fixes #1221.
What this does
Two tests fail on Windows on
main. The app is fine in both cases; the tests assume macOS/Linux path formats. Test code only, no product change. Each failure was reproduced on unmodifiedmainfirst.effectcraft-clirender_out_is_relative_to_the_working_directory:canonicalize()returns a\?\C:\…path on Windows, but a child process reports its working directory without the prefix. A smallcanonical()helper in the test strips the prefix (only for\?\X:drive paths);tmp()and the test use it.effectcraft-hostrender_queue_exports_to_a_sink: a path rooted without a drive letter is not absolute on Windows, so the engine joins it to the home drive (C:), while the test expected the current drive. On Windows the test now usesC:/no-such-dir-effectcraft-sink-test.The third failure listed in #1221, the script include test, was fixed meanwhile by #1124, so this PR no longer touches it.
Checks
Windows 11, Rust 1.99, rebased onto
mainat 549e9d8.mainand pass with this change.cargo fmt --all --checkpasses;cargo clippy --workspace --all-targets --release -- -D warningspassed before the rebase (the two files are unchanged by it).cargo test --workspaceandcargo xtask layers/assets/wasm(test-only change in two crates; CI covers the rest).mainand are not part of this PR:effectcraft-exportwebm_low_bitrate_opus_modesandav1_webm_with_opus(ffprobe: "Error parsing Opus packet header") andeffectcraft-textfonts::tests::other_scripts_fall_back_to_a_plain_system_family(an installed "DIN Next LT Arabic" font). They look environment-dependent, so I left them alone.