From 4917bfd52b1941c1b53925951fdae27c5e7d6008 Mon Sep 17 00:00:00 2001 From: Marco Craveiro Date: Sat, 5 Dec 2026 15:56:01 +0000 Subject: [PATCH] [platform] Ask the platform for an absolute path in the test The test passed /opt/compass/... on Windows, where that path is rooted but not absolute, so the tag build failed. Use the temporary directory, which is absolute on every platform. Co-Authored-By: Claude Code --- projects/compass.platform/tests/filesystem_library_tests.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/compass.platform/tests/filesystem_library_tests.cpp b/projects/compass.platform/tests/filesystem_library_tests.cpp index b8bbc266..68eee14c 100644 --- a/projects/compass.platform/tests/filesystem_library_tests.cpp +++ b/projects/compass.platform/tests/filesystem_library_tests.cpp @@ -51,6 +51,7 @@ TEST_CASE("a library option refuses an empty entry", "[platform][filesystem]") { TEST_CASE("a directory is outside the checkout when it is absolute", "[platform][filesystem]") { - CHECK(outside_the_checkout("/opt/compass/share/compass/masd")); + CHECK(outside_the_checkout( + std::filesystem::temp_directory_path().generic_string())); CHECK_FALSE(outside_the_checkout("projects/ores.codegen/library")); }