diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-14 16:15:05 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2025-03-24 09:14:22 +0100 |
commit | 6c009825cb320cc00531494985aa5fe7e0989971 (patch) | |
tree | da59ec4ea635e6460945c76c0f161f2f29214d0c /test/buildtool | |
parent | bf185ababc1b97d2d2ab58de85449ffa7fd0b441 (diff) | |
download | justbuild-6c009825cb320cc00531494985aa5fe7e0989971.tar.gz |
TmpDir: minor refactoring
Diffstat (limited to 'test/buildtool')
-rw-r--r-- | test/buildtool/execution_api/common/tree_rehashing.test.cpp | 4 | ||||
-rw-r--r-- | test/buildtool/storage/large_object_cas.test.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/buildtool/execution_api/common/tree_rehashing.test.cpp b/test/buildtool/execution_api/common/tree_rehashing.test.cpp index 97b21f97..0049a7a0 100644 --- a/test/buildtool/execution_api/common/tree_rehashing.test.cpp +++ b/test/buildtool/execution_api/common/tree_rehashing.test.cpp @@ -43,7 +43,7 @@ #include "test/utils/large_objects/large_object_utils.hpp" namespace { -[[nodiscard]] auto GenerateTestDirectory() -> std::optional<TmpDirPtr>; +[[nodiscard]] auto GenerateTestDirectory() -> std::optional<TmpDir::Ptr>; /// \brief Deeply hash a local tree and add it to the storage. [[nodiscard]] auto StoreHashedTree(Storage const& storage, @@ -185,7 +185,7 @@ TEST_CASE("Rehash tree", "[common]") { } namespace { -[[nodiscard]] auto GenerateTestDirectory() -> std::optional<TmpDirPtr> { +[[nodiscard]] auto GenerateTestDirectory() -> std::optional<TmpDir::Ptr> { auto const test_dir = FileSystemManager::GetCurrentDirectory() / "tmp"; auto head_temp_directory = TmpDir::Create(test_dir / "head_dir"); auto const head_temp_dir_path = head_temp_directory->GetPath(); diff --git a/test/buildtool/storage/large_object_cas.test.cpp b/test/buildtool/storage/large_object_cas.test.cpp index 64dba3d6..9de22e9b 100644 --- a/test/buildtool/storage/large_object_cas.test.cpp +++ b/test/buildtool/storage/large_object_cas.test.cpp @@ -643,7 +643,7 @@ class TestFilesDirectory final { } private: - TmpDirPtr temp_directory_; + TmpDir::Ptr temp_directory_; explicit TestFilesDirectory() noexcept { auto test_dir = FileSystemManager::GetCurrentDirectory() / "tmp"; temp_directory_ = TmpDir::Create(test_dir / "tmp_space"); |