mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-15 08:23:46 +02:00
test: Replace DEBUG_LOG_OUT with -printtoconsole=1
This commit is contained in:
@@ -14,18 +14,6 @@
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
|
||||
/** Redirect debug log to unit_test.log files */
|
||||
const std::function<void(const std::string&)> G_TEST_LOG_FUN = [](const std::string& s) {
|
||||
static const bool should_log{std::any_of(
|
||||
&boost::unit_test::framework::master_test_suite().argv[1],
|
||||
&boost::unit_test::framework::master_test_suite().argv[boost::unit_test::framework::master_test_suite().argc],
|
||||
[](const char* arg) {
|
||||
return std::string{"DEBUG_LOG_OUT"} == arg;
|
||||
})};
|
||||
if (!should_log) return;
|
||||
std::cout << s;
|
||||
};
|
||||
|
||||
/**
|
||||
* Retrieve the command line arguments from boost.
|
||||
* Allows usage like:
|
||||
|
||||
Reference in New Issue
Block a user