Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.
C++ 3d3d-sculptingcppdear-imguidigital-sculptingfbxgame-developmentgaussian-splattinggltfimage-to-3dmcpopenglopenusdsculptingtext-to-3dunreal-engine
test_ai_link: check the endpoint's real folder (the short /tmp fallback on macOS), not run/sculptforge
islandmedb57d1f886d52
diff --git a/tests/test_ai_link.cpp b/tests/test_ai_link.cppindex 7166eb3f..acc9687e 100644--- a/tests/test_ai_link.cpp+++ b/tests/test_ai_link.cpp@@ -203,7 +203,8 @@ TEST(ai_link_socket_permissions_and_disconnect) {std::string err;const std::string endpoint = aiLinkEndpoint(err);CHECK(!endpoint.empty());- CHECK(aiLinkFileMode(std::filesystem::path(endpoint).parent_path().string()) == 0700);+ const std::string folder = std::filesystem::path(endpoint).parent_path().string(); // run/sculptforge, or the+ CHECK(aiLinkFileMode(folder) == 0700); // short /tmp one (macOS)AiLinkListener listener;CHECK(listener.open(endpoint, err));@@ -240,14 +241,14 @@ TEST(ai_link_socket_permissions_and_disconnect) {CHECK(c2.readLine(line, 2000) == -1);// A folder opened to others is closed again; one that isn't a folder is refused.- std::filesystem::permissions(run + "/sculptforge", std::filesystem::perms::all);+ std::filesystem::permissions(folder, std::filesystem::perms::all);listener.close();CHECK(!aiLinkEndpoint(err).empty());- CHECK(aiLinkFileMode(run + "/sculptforge") == 0700);- std::filesystem::remove_all(run + "/sculptforge");- { std::ofstream(run + "/sculptforge") << "x"; }+ CHECK(aiLinkFileMode(folder) == 0700);+ std::filesystem::remove_all(folder);+ { std::ofstream(folder) << "x"; }CHECK(aiLinkEndpoint(err).empty());- std::filesystem::remove(run + "/sculptforge");+ std::filesystem::remove(folder);// The socket file is gone after close; nobody's listening: the CLI says so.CHECK(aiLinkFileMode(endpoint) == -1);AiLinkConn c3;