Skip to content

#1221: two path-format test failures on Windows - #1254

Merged
bflatastic merged 1 commit into
storytold:mainfrom
vangel76:fix-1221-windows-test-paths
Oct 16, 2026
Merged

bflatastic merged 1 commit into
storytold:mainfrom
vangel76:fix-1221-windows-test-paths

Conversation

@vangel76

@vangel76 vangel76 commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

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 unmodified main first.

  • effectcraft-cli render_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 small canonical() helper in the test strips the prefix (only for \?\X: drive paths); tmp() and the test use it.
  • effectcraft-host render_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 uses C:/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 main at 549e9d8.

  • Both tests fail on unmodified main and pass with this change.
  • cargo fmt --all --check passes; cargo clippy --workspace --all-targets --release -- -D warnings passed before the rebase (the two files are unchanged by it).
  • Not run on this branch: the full cargo test --workspace and cargo xtask layers/assets/wasm (test-only change in two crates; CI covers the rest).
  • Three more tests still fail on my machine on unmodified main and are not part of this PR: effectcraft-export webm_low_bitrate_opus_modes and av1_webm_with_opus (ffprobe: "Error parsing Opus packet header") and effectcraft-text fonts::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.

@vangel76
vangel76 force-pushed the fix-1221-windows-test-paths branch 2 times, most recently from 1ba3b14 to 9f517e5 Compare October 13, 2026 12:01
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
vangel76 force-pushed the fix-1221-windows-test-paths branch from 9f517e5 to 89ae151 Compare October 13, 2026 12:36
@vangel76 vangel76 changed the title #1221: three path-format test failures on Windows #1221: two path-format test failures on Windows Oct 13, 2026
@bflatastic
bflatastic merged commit 592348b into storytold:main Oct 16, 2026
@bflatastic

Copy link
Copy Markdown
Member

Merged, thank you @vangel76! Checked on Windows 11 against current main: the CLI suite now passes 15/15, and the host sink test and clippy -D warnings pass too.

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.

Tests: three path-format failures on Windows (CLI, host, script)

2 participants