From ed405e86129f804e64f4c53bfe1b25d30fb7d490 Mon Sep 17 00:00:00 2001 From: upipibi Date: Tue, 24 Nov 2026 00:04:28 -0600 Subject: [PATCH] e2e: the debug-layer test keeps its files in the target's tmp folder test_title_draws_with_a_root_signature_under_the_debug_layer built its game and data folders under /target/e2e-debug-layer, whatever the target directory is. With CARGO_TARGET_DIR (or build.target-dir) set, that made a `target` folder in the source tree and left the test's files outside the place `cargo clean` empties. It uses CARGO_TARGET_TMPDIR now, as test_title_runs_and_game_folder_is_untouched beside it does. Co-Authored-By: Claude Fable 5.2 --- crates/xcl/tests/e2e.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/xcl/tests/e2e.rs b/crates/xcl/tests/e2e.rs index 57301087f2..da30dc4ab8 100644 --- a/crates/xcl/tests/e2e.rs +++ b/crates/xcl/tests/e2e.rs @@ -255,7 +255,7 @@ fn test_title_draws_with_a_root_signature_under_the_debug_layer() { let xcl = PathBuf::from(env!("CARGO_BIN_EXE_xcl")); let bin_dir = xcl.parent().unwrap(); let manifest = Path::new(env!("CARGO_MANIFEST_DIR")); - let root = manifest.join("..").join("..").join("target").join("e2e-debug-layer"); + let root = Path::new(env!("CARGO_TARGET_TMPDIR")).join("e2e-debug-layer"); let _ = std::fs::remove_dir_all(&root); let (game, data) = (root.join("game"), root.join("data")); copy_dir(&manifest.join("..").join("..").join("tests").join("data").join("testgame"), &game);