Files
metal2vulkan/crates/metal2vulkan-conformance/tests
Anees Iqbal 71dab7bba8 Conformance: the killed-scratch test asks for the holder's path only when it runs
CI's Linux clippy (`cargo clippy --workspace --all-targets --all-features`,
run 122057987258 at eb69a32299, nightly-2026-11-03) failed to compile
tests/killed_scratch.rs: "environment variable `CARGO_BIN_EXE_scratch-holder`
not defined at compile time". The macOS leg compiled nothing of the crate (its
cache held it), so it says nothing either way.

On our nodes the same toolchain checks the crate with no compiler cache and a
fresh target, and the variable is defined there (job m3-max-69411: the
crate's clippy at eb69a32299 exits 0). What leaves it undefined in CI is not
found; CI resolves the dependencies afresh, with no lockfile, and restores a
target from its cache, and neither is reproduced here.

The path is now `option_env!`, so the file compiles whether or not a build
defines it, and the test asks for it when it runs, where a test build that
links the binary has it. Verified: m3-max-69411 at the fix (9a4bcac58e, the
same diff), the workspace's clippy exits 0 and killed_scratch's 2 tests pass.
2026-11-22 19:35:41 -08:00
..