aboutsummaryrefslogtreecommitdiff
path: root/src/test/alert_tests.cpp
diff options
context:
space:
mode:
authorEric Lombrozo <elombrozo@gmail.com>2015-10-25 04:19:21 -0400
committerEric Lombrozo <elombrozo@gmail.com>2015-10-25 05:47:02 -0400
commit143d17396906835c3a3ccd59e202f5327c05f63f (patch)
treebbc1c03c6d4af8563f1ee3cdacf04991b70ccfe1 /src/test/alert_tests.cpp
parent46f74379b86be982b121bcb8c3cfe07fa80bffd0 (diff)
downloadbitcoin-143d17396906835c3a3ccd59e202f5327c05f63f.tar.xz
Use BOOST_CHECK_MESSAGE() rather than BOOST_CHECK() in alerts_tests.cpp and initialize strMiscWarning before calling PartitionCheck()."
Diffstat (limited to 'src/test/alert_tests.cpp')
-rw-r--r--src/test/alert_tests.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/alert_tests.cpp b/src/test/alert_tests.cpp
index dd3c51d09b..468eda1c9b 100644
--- a/src/test/alert_tests.cpp
+++ b/src/test/alert_tests.cpp
@@ -217,10 +217,12 @@ BOOST_AUTO_TEST_CASE(PartitionAlert)
// use them
}
+ strMiscWarning = "";
+
// Test 1: chain with blocks every nPowTargetSpacing seconds,
// as normal, no worries:
PartitionCheck(falseFunc, csDummy, &indexDummy[99], nPowTargetSpacing);
- BOOST_CHECK(strMiscWarning.empty());
+ BOOST_CHECK_MESSAGE(strMiscWarning.empty(), strMiscWarning);
// Test 2: go 3.5 hours without a block, expect a warning:
now += 3*60*60+30*60;