mirror of
https://github.com/monero-project/monero.git
synced 2025-01-08 10:17:56 -05:00
fix ubuntu 20 compile
This commit is contained in:
parent
f47c60ec63
commit
e636c384a9
@ -125,8 +125,7 @@ namespace unit_test
|
|||||||
const std::string dest_path = m_temp_db_dir + temp_db_path.string();
|
const std::string dest_path = m_temp_db_dir + temp_db_path.string();
|
||||||
CHECK_AND_ASSERT_THROW_MES(boost::filesystem::create_directories(dest_path),
|
CHECK_AND_ASSERT_THROW_MES(boost::filesystem::create_directories(dest_path),
|
||||||
"failed to create new db dirs");
|
"failed to create new db dirs");
|
||||||
CHECK_AND_ASSERT_THROW_MES(boost::filesystem::copy_file(lmdb_data_path, dest_path + "/data.mdb"),
|
boost::filesystem::copy_file(lmdb_data_path, dest_path + "/data.mdb");
|
||||||
"failed to copy db data");
|
|
||||||
|
|
||||||
// Open db copy
|
// Open db copy
|
||||||
BlockchainLMDBTest *copy_db = new BlockchainLMDBTest(true/*is_copy*/);
|
BlockchainLMDBTest *copy_db = new BlockchainLMDBTest(true/*is_copy*/);
|
||||||
|
Loading…
Reference in New Issue
Block a user