From a2f206885ea654087713612bd3c8ffb6b45ed0bd Mon Sep 17 00:00:00 2001 From: fiestorra Date: Tue, 1 Dec 2026 05:11:34 +0100 Subject: [PATCH] main: the two reds a push left behind, together so either can be merged 949 - indirect.rs declares 'mod asbench' under #[cfg(test)] and the file was never committed: cargo test --workspace fails with E0583 before running anything. - make_amplify_dxil.py's __main__ does not set errors='replace' on stdout, which test_tool_stdout_encoding.py requires of every tool: main fails it on Linux and Windows. Separately neither pull request can show green, because each inherits the other's red from main. Together: the python test passes 4 of 4, cargo test --no-run compiles, and cargo test --workspace has only the asset policy failure that #2815 fixes. --- d3d12/crates/leonida-gpu/src/indirect.rs | 2 -- tools/make_amplify_dxil.py | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/d3d12/crates/leonida-gpu/src/indirect.rs b/d3d12/crates/leonida-gpu/src/indirect.rs index a9e4cbb1a9..25a51e859b 100644 --- a/d3d12/crates/leonida-gpu/src/indirect.rs +++ b/d3d12/crates/leonida-gpu/src/indirect.rs @@ -4032,8 +4032,6 @@ void main() { /// The benchmark of the clamp and its barriers (ignored by default). #[cfg(test)] mod bench; -#[cfg(test)] -mod asbench; /// What one small draw costs this card, bare and with one thing changed /// between every two draws: a measurement, not a check (it asserts only diff --git a/tools/make_amplify_dxil.py b/tools/make_amplify_dxil.py index 8fa71cff06..0f38be9b1f 100644 --- a/tools/make_amplify_dxil.py +++ b/tools/make_amplify_dxil.py @@ -66,4 +66,8 @@ def main(): if __name__ == "__main__": + try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode + sys.stdout.reconfigure(errors="replace") + except (AttributeError, ValueError, OSError): + pass main()