fix
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:
parent
43f0a4b646
commit
3238b6d4de
@ -1,15 +1,15 @@
|
|||||||
set(BINUTILS_VERSION 2.41)
|
set(BINUTILS_VERSION 2.41)
|
||||||
set(BOOST_MAJOR_VERSION 1)
|
|
||||||
set(BOOST_MINOR_VERSION 85)
|
|
||||||
set(BOOST_PATCH_VERSION 0)
|
|
||||||
set(BOOST2_MAJOR_VERSION 1)
|
set(BOOST2_MAJOR_VERSION 1)
|
||||||
set(BOOST2_MINOR_VERSION 76)
|
set(BOOST2_MINOR_VERSION 76)
|
||||||
set(BOOST2_PATCH_VERSION 0)
|
set(BOOST2_PATCH_VERSION 0)
|
||||||
|
set(BOOST_MAJOR_VERSION 1)
|
||||||
|
set(BOOST_MINOR_VERSION 85)
|
||||||
|
set(BOOST_PATCH_VERSION 0)
|
||||||
set(CPP_HTTPLIB_VERSION 0.16.3)
|
set(CPP_HTTPLIB_VERSION 0.16.3)
|
||||||
set(CURL_VERSION 8.9.1)
|
|
||||||
set(CURL2_VERSION 8_9_1)
|
set(CURL2_VERSION 8_9_1)
|
||||||
set(EXPAT_VERSION 2.6.2)
|
set(CURL_VERSION 8.9.1)
|
||||||
set(EXPAT2_VERSION 2_6_2)
|
set(EXPAT2_VERSION 2_6_2)
|
||||||
|
set(EXPAT_VERSION 2.6.2)
|
||||||
set(GCC_VERSION 14.2.0)
|
set(GCC_VERSION 14.2.0)
|
||||||
set(GTEST_VERSION 1.15.2)
|
set(GTEST_VERSION 1.15.2)
|
||||||
set(ICU_VERSION 75-1)
|
set(ICU_VERSION 75-1)
|
||||||
@ -21,7 +21,7 @@ set(OPENSSL_VERSION 3.3.1)
|
|||||||
set(PKG_CONFIG_VERSION 0.29.2)
|
set(PKG_CONFIG_VERSION 0.29.2)
|
||||||
set(PUGIXML_VERSION 1.14)
|
set(PUGIXML_VERSION 1.14)
|
||||||
set(SPDLOG_VERSION 1.14.1)
|
set(SPDLOG_VERSION 1.14.1)
|
||||||
set(SQLITE_VERSION 3460100)
|
|
||||||
set(SQLITE2_VERSION 3.46.1)
|
set(SQLITE2_VERSION 3.46.1)
|
||||||
|
set(SQLITE_VERSION 3460100)
|
||||||
set(STDUUID_VERSION 1.2.3)
|
set(STDUUID_VERSION 1.2.3)
|
||||||
set(ZLIB_VERSION 1.3.1)
|
set(ZLIB_VERSION 1.3.1)
|
||||||
|
@ -29,33 +29,21 @@ static std::recursive_mutex file_mtx{};
|
|||||||
static std::vector<std::unique_ptr<repertory::utils::file::i_fs_item>>
|
static std::vector<std::unique_ptr<repertory::utils::file::i_fs_item>>
|
||||||
generated_files{};
|
generated_files{};
|
||||||
|
|
||||||
static void delete_generated_files() {
|
struct file_deleter final {
|
||||||
if (PROJECT_TEST_RESULT == 0) {
|
std::string test_output_dir;
|
||||||
repertory::recur_mutex_lock lock{file_mtx};
|
|
||||||
std::map<std::string, bool> parent_paths;
|
~file_deleter() {
|
||||||
for (auto &&path : generated_files) {
|
|
||||||
parent_paths[repertory::utils::path::get_parent_path(path->get_path())] =
|
|
||||||
true;
|
|
||||||
}
|
|
||||||
generated_files.clear();
|
generated_files.clear();
|
||||||
|
|
||||||
for (auto &&entry : parent_paths) {
|
if (PROJECT_TEST_RESULT == 0) {
|
||||||
EXPECT_TRUE(
|
EXPECT_TRUE(repertory::utils::file::directory(test_output_dir)
|
||||||
repertory::utils::file::directory(entry.first).remove_recursively());
|
.remove_recursively());
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPECT_TRUE(repertory::utils::file::directory(
|
|
||||||
repertory::test::get_test_output_dir())
|
|
||||||
.remove_recursively());
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
struct file_deleter final {
|
|
||||||
~file_deleter() { delete_generated_files(); }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static auto deleter{
|
const auto deleter{
|
||||||
std::make_unique<file_deleter>(),
|
std::make_unique<file_deleter>(repertory::test::get_test_output_dir()),
|
||||||
};
|
};
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user