aboutsummaryrefslogtreecommitdiff
path: root/src/test/util/setup_common.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-09-27 11:53:34 -0400
committerMarcoFalke <falke.marco@gmail.com>2020-01-02 18:00:05 -0500
commitfa37e0a68bea65979f9f8f2e5258fe608acf2bdf (patch)
tree8deac6542c23efb0dad232c4c30bc88c68187e71 /src/test/util/setup_common.cpp
parent17e14ac92fced92457945859463eda5d435bdd49 (diff)
test: Show debug log on unit test failure
Diffstat (limited to 'src/test/util/setup_common.cpp')
-rw-r--r--src/test/util/setup_common.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp
index 3bdf3485fa..ccb3064d59 100644
--- a/src/test/util/setup_common.cpp
+++ b/src/test/util/setup_common.cpp
@@ -71,6 +71,7 @@ BasicTestingSetup::BasicTestingSetup(const std::string& chainName)
SelectParams(chainName);
SeedInsecureRand();
gArgs.ForceSetArg("-printtoconsole", "0");
+ if (G_TEST_LOG_FUN) LogInstance().PushBackCallback(G_TEST_LOG_FUN);
InitLogging();
LogInstance().StartLogging();
SHA256AutoDetect();