tests: fix hex-escape-out-of-range in CAD recipe 3mf test

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BVzKmX6Y1aEteit1HTXG4Q
This commit is contained in:
Tommaso Bianchi
2026-07-02 13:06:28 +02:00
co-authored by Claude Opus 4.8
parent 1673c2c760
commit 3ba6feb7a7
+2 -2
View File
@@ -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)") {