From 85938804a4a043c75cc4ca51a64ee789e55ba7cb Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 6 Jul 2023 14:29:27 +0200 Subject: filesystem: Avoid unwanted indirections... ...that std::filesystem::* calls produce. This is because existence and type checks use almost exclusively std::filesystem::status, which follows symbolic links, when being called with path arguments. Instead, one should instead use these methods with the value returned by a call of std::filesystem::symlink_status. This commit also streamlines the FileSystemManager tests, as well as replace bare calls to std::filesystem with their FileSystemManager counterparts (where suitable). --- test/buildtool/graph_traverser/graph_traverser.test.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/buildtool/graph_traverser/graph_traverser.test.hpp') diff --git a/test/buildtool/graph_traverser/graph_traverser.test.hpp b/test/buildtool/graph_traverser/graph_traverser.test.hpp index c5ffb840..84b348e4 100644 --- a/test/buildtool/graph_traverser/graph_traverser.test.hpp +++ b/test/buildtool/graph_traverser/graph_traverser.test.hpp @@ -107,7 +107,7 @@ class TestProject { clargs.artifacts = entry_points; auto const comp_graph = root_dir_ / "graph_description_compatible"; if (Compatibility::IsCompatible() and - std::filesystem::exists(comp_graph)) { + FileSystemManager::Exists(comp_graph)) { clargs.graph_description = comp_graph; } else { -- cgit v1.2.3