aboutsummaryrefslogtreecommitdiff
path: root/src/test/alert_tests.cpp
diff options
context:
space:
mode:
authorGregory Maxwell <[email protected]>2013-09-10 17:51:05 -0700
committerGregory Maxwell <[email protected]>2013-09-10 17:51:05 -0700
commit11a79680b174ec39d462925ea565a23aa8c147ad (patch)
tree6b38ba89eb3110af8a9c93a49ed141da2eeaef63 /src/test/alert_tests.cpp
parentMerge pull request #2982 from gmaxwell/20130908_ccoins_corrupt (diff)
parentBugfix: Since test_bitcoin is being built and run inside src/test/, try using... (diff)
downloaddiscoin-11a79680b174ec39d462925ea565a23aa8c147ad.tar.xz
discoin-11a79680b174ec39d462925ea565a23aa8c147ad.zip
Merge pull request #2979 from luke-jr/autoconf
Autoconf fixes
Diffstat (limited to 'src/test/alert_tests.cpp')
-rw-r--r--src/test/alert_tests.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/alert_tests.cpp b/src/test/alert_tests.cpp
index f7a11376d..ed6dcd818 100644
--- a/src/test/alert_tests.cpp
+++ b/src/test/alert_tests.cpp
@@ -73,7 +73,7 @@ struct ReadAlerts
{
std::string filename("alertTests");
namespace fs = boost::filesystem;
- fs::path testFile = fs::current_path() / "test" / "data" / filename;
+ fs::path testFile = fs::current_path() / "data" / filename;
#ifdef TEST_DATA_DIR
if (!fs::exists(testFile))
{
@@ -125,6 +125,9 @@ BOOST_AUTO_TEST_CASE(AlertApplies)
{
BOOST_CHECK(alert.CheckSignature());
}
+
+ BOOST_CHECK(alerts.size() >= 3);
+
// Matches:
BOOST_CHECK(alerts[0].AppliesTo(1, ""));
BOOST_CHECK(alerts[0].AppliesTo(70001, ""));