From 3ba6feb7a7bef6371cddd36635e5161807f27686 Mon Sep 17 00:00:00 2001 From: Tommaso Bianchi Date: Thu, 2 Jul 2026 13:06:28 +0200 Subject: [PATCH] tests: fix hex-escape-out-of-range in CAD recipe 3mf test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc reads "\x10cad..." as one escape (c/a/d are hex digits → 0x10CAD > 255). Split the string literal so the \x10 escape terminates. clang let it slide; gcc (Linux/Windows CI) errored and blocked the OrcaSlicer build. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01BVzKmX6Y1aEteit1HTXG4Q --- tests/libslic3r/test_3mf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/libslic3r/test_3mf.cpp b/tests/libslic3r/test_3mf.cpp index 9cb66f8a63..e73dc58fc1 100644 --- a/tests/libslic3r/test_3mf.cpp +++ b/tests/libslic3r/test_3mf.cpp @@ -150,7 +150,7 @@ SCENARIO("CAD recipe blob survives a 3mf save/load cycle", "[3mf]") { recipe.push_back('\x01'); recipe.append("SNAPORCA"); recipe.push_back('\0'); - recipe.append("\xff\xfe\x00\x10cad-features-blob"); + recipe.append("\xff\xfe\x00\x10" "cad-features-blob"); src_model.cad_recipe = recipe; WHEN("the model is saved+loaded to/from a 3mf file") { @@ -188,7 +188,7 @@ SCENARIO("CAD recipe is embedded in the BBS 3mf archive", "[3mf]") { recipe.push_back('\x01'); recipe.append("SNAPORCA"); recipe.push_back('\0'); - recipe.append("\xff\xfe\x00\x10cad-features-blob"); + recipe.append("\xff\xfe\x00\x10" "cad-features-blob"); model.cad_recipe = recipe; WHEN("saved through the BBS backend (the format the GUI uses)") {