mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-18 14:32:36 +00:00
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:
co-authored by
Claude Opus 4.8
parent
1673c2c760
commit
3ba6feb7a7
@@ -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)") {
|
||||
|
||||
Reference in New Issue
Block a user