updated build system
Some checks reported errors
BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
2024-08-31 08:46:51 -05:00
parent a15523c375
commit 72a0b653ba
11 changed files with 37 additions and 37 deletions

View File

@ -24,15 +24,15 @@
namespace {
static std::recursive_mutex file_mtx{};
static std::vector<std::unique_ptr<repertory::utils::file::i_fs_item>>
static std::vector<std::unique_ptr<fifthgrid::utils::file::i_fs_item>>
generated_files{};
static void delete_generated_files() {
repertory::recur_mutex_lock lock{file_mtx};
fifthgrid::recur_mutex_lock lock{file_mtx};
std::optional<std::string> parent_path;
for (auto &&path : generated_files) {
if (parent_path->empty()) {
parent_path = repertory::utils::path::get_parent_path(path->get_path());
parent_path = fifthgrid::utils::path::get_parent_path(path->get_path());
}
[[maybe_unused]] auto removed = path->remove();
@ -41,7 +41,7 @@ static void delete_generated_files() {
if (parent_path.has_value()) {
EXPECT_TRUE(
repertory::utils::file::directory(*parent_path).remove_recursively());
fifthgrid::utils::file::directory(*parent_path).remove_recursively());
}
}
@ -52,7 +52,7 @@ struct file_deleter final {
static auto deleter{std::make_unique<file_deleter>()};
} // namespace
namespace repertory::test {
namespace fifthgrid::test {
#if defined(PROJECT_ENABLE_LIBSODIUM)
auto create_random_file(std::size_t size) -> utils::file::i_file & {
recur_mutex_lock lock{file_mtx};
@ -134,4 +134,4 @@ auto get_test_output_dir() -> std::string {
return test_path;
}
} // namespace repertory::test
} // namespace fifthgrid::test