From f7c7a484b0c575cb987739a113fca16d873ac388 Mon Sep 17 00:00:00 2001 From: TheHoracio <126379906+TheHoracio@users.noreply.github.com> Date: Mon, 23 Nov 2026 20:13:20 +0100 Subject: [PATCH] e2e: host preflight warnings no longer fail the console-title check test_title_runs_and_game_folder_is_untouched rejected any WARNING in stdout, so a machine without Gaming Services (preflight: "no System32\xgameruntime.dll") failed it although the test title ran to "failures: 0". The assert now checks only the launcher's own verdict on the file ("imports no console library" / "not a valid x64 PE file"). Co-Authored-By: Claude Opus 5.5 --- crates/xcl/tests/e2e.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/xcl/tests/e2e.rs b/crates/xcl/tests/e2e.rs index 819644a..27ff400 100644 --- a/crates/xcl/tests/e2e.rs +++ b/crates/xcl/tests/e2e.rs @@ -120,8 +120,12 @@ fn test_title_runs_and_game_folder_is_untouched() { let stderr = String::from_utf8_lossy(&out.stderr); println!("--- stdout ---\n{stdout}\n--- stderr ---\n{stderr}"); + // Only the launcher's own verdict on the file counts here: preflight warnings about the host + // (no Gaming Services / xgameruntime.dll, no mesh shaders, WARP) say nothing about the title. assert!( - stdout.contains("console: imports kernelx.dll") && !stdout.contains("WARNING"), + stdout.contains("console: imports kernelx.dll") + && !stdout.contains("imports no console library") + && !stdout.contains("not a valid x64 PE file"), "the launcher should recognize a console title" ); let fails: Vec<&str> = stdout.lines().filter(|l| l.starts_with("[FAIL]")).collect();