Skip to content

Commit fafc529

Browse files
author
MarcoFalke
committed
test: Run AssetTest even if built --with-libs=no
1 parent faf58ab commit fafc529

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/script_tests.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,8 +1470,6 @@ BOOST_AUTO_TEST_CASE(script_HasValidOps)
14701470
BOOST_CHECK(!script.HasValidOps());
14711471
}
14721472

1473-
#if defined(HAVE_CONSENSUS_LIB)
1474-
14751473
static CMutableTransaction TxFromHex(const std::string& str)
14761474
{
14771475
CMutableTransaction tx;
@@ -1502,6 +1500,8 @@ static CScriptWitness ScriptWitnessFromJSON(const UniValue& univalue)
15021500
return scriptwitness;
15031501
}
15041502

1503+
#if defined(HAVE_CONSENSUS_LIB)
1504+
15051505
/* Test simple (successful) usage of bitcoinconsensus_verify_script */
15061506
BOOST_AUTO_TEST_CASE(bitcoinconsensus_verify_script_returns_true)
15071507
{
@@ -1640,6 +1640,8 @@ BOOST_AUTO_TEST_CASE(bitcoinconsensus_verify_script_invalid_flags)
16401640
BOOST_CHECK_EQUAL(err, bitcoinconsensus_ERR_INVALID_FLAGS);
16411641
}
16421642

1643+
#endif // defined(HAVE_CONSENSUS_LIB)
1644+
16431645
static std::vector<unsigned int> AllConsensusFlags()
16441646
{
16451647
std::vector<unsigned int> ret;
@@ -1742,5 +1744,4 @@ BOOST_AUTO_TEST_CASE(script_assets_test)
17421744
file.close();
17431745
}
17441746

1745-
#endif
17461747
BOOST_AUTO_TEST_SUITE_END()

0 commit comments

Comments
 (0)