mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-25 22:34:27 +00:00
Bugfix: Since test_bitcoin is being built and run inside src/test/, try using relative directories from that point
This commit is contained in:
parent
9a09c0091c
commit
1e9d3b1392
@ -73,7 +73,7 @@ struct ReadAlerts
|
|||||||
{
|
{
|
||||||
std::string filename("alertTests");
|
std::string filename("alertTests");
|
||||||
namespace fs = boost::filesystem;
|
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
|
#ifdef TEST_DATA_DIR
|
||||||
if (!fs::exists(testFile))
|
if (!fs::exists(testFile))
|
||||||
{
|
{
|
||||||
@ -125,6 +125,9 @@ BOOST_AUTO_TEST_CASE(AlertApplies)
|
|||||||
{
|
{
|
||||||
BOOST_CHECK(alert.CheckSignature());
|
BOOST_CHECK(alert.CheckSignature());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOST_CHECK(alerts.size() >= 3);
|
||||||
|
|
||||||
// Matches:
|
// Matches:
|
||||||
BOOST_CHECK(alerts[0].AppliesTo(1, ""));
|
BOOST_CHECK(alerts[0].AppliesTo(1, ""));
|
||||||
BOOST_CHECK(alerts[0].AppliesTo(70001, ""));
|
BOOST_CHECK(alerts[0].AppliesTo(70001, ""));
|
||||||
|
@ -19,7 +19,7 @@ bool
|
|||||||
read_block(const std::string& filename, CBlock& block)
|
read_block(const std::string& filename, CBlock& block)
|
||||||
{
|
{
|
||||||
namespace fs = boost::filesystem;
|
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
|
#ifdef TEST_DATA_DIR
|
||||||
if (!fs::exists(testFile))
|
if (!fs::exists(testFile))
|
||||||
{
|
{
|
||||||
|
@ -93,7 +93,7 @@ Array
|
|||||||
read_json(const std::string& filename)
|
read_json(const std::string& filename)
|
||||||
{
|
{
|
||||||
namespace fs = boost::filesystem;
|
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
|
#ifdef TEST_DATA_DIR
|
||||||
if (!fs::exists(testFile))
|
if (!fs::exists(testFile))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user