Skip to content

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.

Perf trace test: compare the log path as a path (Windows joins with a backslash, the trace with /)

islandmed047c69498bcd
diff --git a/tests/test_perf_trace.cpp b/tests/test_perf_trace.cpp
index 17f6f480..dd33b6ac 100644
--- a/tests/test_perf_trace.cpp
+++ b/tests/test_perf_trace.cpp
@@ -36,7 +36,7 @@ TEST(perf_trace_off_writes_nothing_on_writes_lines) {
CHECK(!fs::exists(dir / "sculptforge-trace.log"));
CHECK(perftrace::start(dir.string(), "HEADER gpu"));
CHECK(perftrace::on());
- CHECK(perftrace::path() == (dir / "sculptforge-trace.log").string());
+ CHECK(fs::path(perftrace::path()) == dir / "sculptforge-trace.log"); // compared as paths: Windows joins with a backslash
perftrace::line("long frame 48.0 ms");
perftrace::stop();
CHECK(!perftrace::on());