diff options
author | Alberto Sartori <alberto.sartori@huawei.com> | 2023-07-21 11:26:52 +0200 |
---|---|---|
committer | Alberto Sartori <alberto.sartori@huawei.com> | 2023-07-21 14:08:29 +0200 |
commit | 629dc072c7c81693e55cafaa90e63ff1128b0efe (patch) | |
tree | 54960c37839b1ef388d50444414795d78298a6c2 /test/buildtool/execution_engine/executor | |
parent | 5548997571612cb8a78dfa9ac50ed690a28341ca (diff) | |
download | justbuild-629dc072c7c81693e55cafaa90e63ff1128b0efe.tar.gz |
bugfix: stage symlinks as symlinks when creating an action directory
Before this patch, when creating an action directory, symlinks were
staged as regular files.
Diffstat (limited to 'test/buildtool/execution_engine/executor')
-rwxr-xr-x | test/buildtool/execution_engine/executor/executor_api.test.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/buildtool/execution_engine/executor/executor_api.test.hpp b/test/buildtool/execution_engine/executor/executor_api.test.hpp index 30d724ea..ffee5184 100755 --- a/test/buildtool/execution_engine/executor/executor_api.test.hpp +++ b/test/buildtool/execution_engine/executor/executor_api.test.hpp @@ -398,11 +398,9 @@ static inline void TestUploadAndDownloadTrees(ApiFactory const& factory, CHECK(FileSystemManager::IsDirectory(tmpdir)); CHECK(FileSystemManager::IsDirectory(tmpdir / "b")); CHECK(FileSystemManager::IsFile(tmpdir / "a")); - // echo command returns regular file instead of symlink - CHECK(FileSystemManager::IsFile(tmpdir / "b" / "a")); + CHECK(FileSystemManager::IsNonUpwardsSymlink(tmpdir / "b" / "a")); CHECK(*FileSystemManager::ReadFile(tmpdir / "a") == "foo"); - // echo command returns regular file instead of symlink - CHECK(*FileSystemManager::ReadFile(tmpdir / "b" / "a") == "bar"); + CHECK(*FileSystemManager::ReadSymlink(tmpdir / "b" / "a") == "bar"); REQUIRE(FileSystemManager::RemoveDirectory(tmpdir, true)); } |