summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_api
diff options
context:
space:
mode:
Diffstat (limited to 'test/buildtool/execution_api')
-rw-r--r--test/buildtool/execution_api/bazel/bazel_msg_factory.test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/buildtool/execution_api/bazel/bazel_msg_factory.test.cpp b/test/buildtool/execution_api/bazel/bazel_msg_factory.test.cpp
index 2d7aa602..fde64e10 100644
--- a/test/buildtool/execution_api/bazel/bazel_msg_factory.test.cpp
+++ b/test/buildtool/execution_api/bazel/bazel_msg_factory.test.cpp
@@ -97,7 +97,8 @@ TEST_CASE("Bazel internals: MessageFactory", "[execution_api]") {
for (auto const& digest : digests) {
REQUIRE(fake_cas.contains(digest));
auto fpath = fake_cas[digest];
- if (std::filesystem::is_symlink(fpath)) {
+ if (FileSystemManager::IsNonUpwardsSymlink(
+ fpath, /*non_strict=*/true)) {
auto content = FileSystemManager::ReadSymlink(fpath);
REQUIRE(content);
targets->emplace_back(*content);