From d33dfa8f2cebb3c2955e0f7bc3a017db5b46fac5 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 30 Sep 2026 12:29:32 +0000 Subject: [PATCH] Tests: keep CAD test names ASCII so Windows CTest can select them MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OrcaSlicer#16019's Windows unit-test jobs failed on one test, "Hole standards: ... 82° countersink": CTest passes the test name to Catch on the command line, the ° arrives in the ANSI code page, the filter matches no test and the run counts as failed ("No test cases matched", "No tests ran"). The name now says "82 degree"; it was the only test name in the suite outside ASCII. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01QK4VgguuCAk2hZLWgcjJb9 --- tests/libslic3r/test_caddocument.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/libslic3r/test_caddocument.cpp b/tests/libslic3r/test_caddocument.cpp index 480bd929e0..006b7705e2 100644 --- a/tests/libslic3r/test_caddocument.cpp +++ b/tests/libslic3r/test_caddocument.cpp @@ -8848,7 +8848,9 @@ TEST_CASE("A circular pattern spans its whole angle", "[CadDocument][pattern]") CHECK(doc.display_mesh.bounding_box().max.y() > 10.5); } -TEST_CASE("Hole standards: inch sizes by either name, with their 82° countersink", "[CadDocument][hole]") +// ASCII only: CTest passes the name to Catch on the command line, and on Windows a "°" arrives in +// the ANSI code page, matches no test and fails the run. +TEST_CASE("Hole standards: inch sizes by either name, with their 82 degree countersink", "[CadDocument][hole]") { CadDocument doc; const int a = doc.add_hole_standard("1/4-20", 2, true, 10, 0, 0, SketchPlane::XY(), "H1");