Skip to content

Commit 8ca51aa

Browse files
author
MacroFake
committed
Merge bitcoin/bitcoin#26009: test: remove Boost Test from libtest_util
a7dbf74 test: remove Boost Test from libtest util (fanquake) Pull request description: Context is the discussion here: https://github.com/bitcoin/bitcoin/pull/25974/files#r961541457. Output: ```bash [test/util/chainstate.h:38] [CreateAndActivateUTXOSnapshot] Wrote UTXO snapshot to /var/folders/sq/z88fhjzj0b19ftsd2_bjrmjm0000gn/T/test_common_Bitcoin Core/8f2783bb3dbf10c669cd892192d70efcca4bab250226856fed7ffecdb378ffc7/test_snapshot.100.dat: {"coins_written":100,"base_hash":"571d80a9967ae599cec0448b0b0ba1cfb606f584d8069bd7166b86854ba7a191","base_height":100,"path":"/var/folders/sq/z88fhjzj0b19ftsd2_bjrmjm0000gn/T/test_common_Bitcoin Core/8f2783bb3dbf10c669cd892192d70efcca4bab250226856fed7ffecdb378ffc7/test_snapshot.100.dat","txoutset_hash":"cd1ba1c3f393058ae743b7c6bdbd00c897744cdcf022c9f2f0f2b4565c08a49c","nchaintx":101} ``` ACKs for top commit: Sjors: tACK a7dbf74 theuni: ACK a7dbf74 Tree-SHA512: b9511f88a1a997f44637e3f613a71780026ce519f896af4209b01639883a3b1e40543928b213935c63d3e64c1813e9960a9004e47ed7de6cb7f7e36c33199bcc
2 parents ef5bb74 + a7dbf74 commit 8ca51aa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/test/util/chainstate.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@
77

88
#include <clientversion.h>
99
#include <fs.h>
10+
#include <logging.h>
1011
#include <node/context.h>
1112
#include <node/utxo_snapshot.h>
1213
#include <rpc/blockchain.h>
1314
#include <validation.h>
1415

1516
#include <univalue.h>
1617

17-
#include <boost/test/unit_test.hpp>
18-
1918
const auto NoMalleation = [](AutoFile& file, node::SnapshotMetadata& meta){};
2019

2120
/**
@@ -36,8 +35,8 @@ CreateAndActivateUTXOSnapshot(node::NodeContext& node, const fs::path root, F ma
3635

3736
UniValue result = CreateUTXOSnapshot(
3837
node, node.chainman->ActiveChainstate(), auto_outfile, snapshot_path, snapshot_path);
39-
BOOST_TEST_MESSAGE(
40-
"Wrote UTXO snapshot to " << fs::PathToString(snapshot_path.make_preferred()) << ": " << result.write());
38+
LogPrintf(
39+
"Wrote UTXO snapshot to %s: %s", fs::PathToString(snapshot_path.make_preferred()), result.write());
4140

4241
// Read the written snapshot in and then activate it.
4342
//

0 commit comments

Comments
 (0)