summaryrefslogtreecommitdiff
path: root/test/buildtool/storage
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-04-05 09:49:02 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-04-15 17:36:56 +0200
commita0b52e170866b00cd27e243ffd5599be91152395 (patch)
treee2c74ffd1820ec1585dc8da5fb1f99def6d774a3 /test/buildtool/storage
parent2443cd6dd71f654b718e456104efab02f8c1a8e8 (diff)
downloadjustbuild-a0b52e170866b00cd27e243ffd5599be91152395.tar.gz
LargeBlobs: Make LocalCAS::BlobPathNoSync public to fix synchronization of executable files during splitting.
Diffstat (limited to 'test/buildtool/storage')
-rw-r--r--test/buildtool/storage/large_object_cas.test.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/test/buildtool/storage/large_object_cas.test.cpp b/test/buildtool/storage/large_object_cas.test.cpp
index 9b0fc90b..7f45c7b8 100644
--- a/test/buildtool/storage/large_object_cas.test.cpp
+++ b/test/buildtool/storage/large_object_cas.test.cpp
@@ -153,13 +153,6 @@ static void TestLarge() noexcept {
CHECK(FileSystemManager::RemoveFile(path));
CHECK_FALSE(FileSystemManager::IsFile(path));
- // For executables the non-executable entry must be also deleted.
- if constexpr (kIsExec) {
- auto blob_path = cas.BlobPath(digest, /*is_executable=*/false);
- REQUIRE(blob_path);
- CHECK(FileSystemManager::RemoveFile(*blob_path));
- CHECK_FALSE(FileSystemManager::IsFile(*blob_path));
- }
SECTION("Split short-circuting") {
// Check the second call loads the entry from the large CAS:
@@ -311,14 +304,6 @@ static void TestEmpty() noexcept {
CHECK(FileSystemManager::RemoveFile(path));
CHECK_FALSE(FileSystemManager::IsFile(path));
- // For executables the non-executable entry must be also deleted.
- if constexpr (kIsExec) {
- auto blob_path = cas.BlobPath(digest, /*is_executable=*/false);
- REQUIRE(blob_path);
- CHECK(FileSystemManager::RemoveFile(*blob_path));
- CHECK_FALSE(FileSystemManager::IsFile(*blob_path));
- }
-
// Split must not find the large entry:
auto pack_2 = kIsTree ? cas.SplitTree(digest) : cas.SplitBlob(digest);
auto* error_2 = std::get_if<LargeObjectError>(&pack_2);