updated build system
Some checks reported errors
BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
@ -24,15 +24,15 @@
|
||||
namespace {
|
||||
static std::recursive_mutex file_mtx{};
|
||||
|
||||
static std::vector<std::unique_ptr<fifthgrid::utils::file::i_fs_item>>
|
||||
static std::vector<std::unique_ptr<repertory::utils::file::i_fs_item>>
|
||||
generated_files{};
|
||||
|
||||
static void delete_generated_files() {
|
||||
fifthgrid::recur_mutex_lock lock{file_mtx};
|
||||
repertory::recur_mutex_lock lock{file_mtx};
|
||||
std::optional<std::string> parent_path;
|
||||
for (auto &&path : generated_files) {
|
||||
if (parent_path->empty()) {
|
||||
parent_path = fifthgrid::utils::path::get_parent_path(path->get_path());
|
||||
parent_path = repertory::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(
|
||||
fifthgrid::utils::file::directory(*parent_path).remove_recursively());
|
||||
repertory::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 fifthgrid::test {
|
||||
namespace repertory::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 fifthgrid::test
|
||||
} // namespace repertory::test
|
||||
|
Reference in New Issue
Block a user