Skip to content

Commit

Permalink
Merge pull request #904 from AntelopeIO/eosvmoc_arm_etc_limit_tests_10
Browse files Browse the repository at this point in the history
[1.0.3] fix eosvmoc_limits_tests on non-x86 and non-Linux (where OC is not supported)
  • Loading branch information
spoonincode authored Oct 9, 2024
2 parents cc90288 + f536c77 commit 97dc35e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions unittests/eosvmoc_limits_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#ifdef EOSIO_EOS_VM_OC_RUNTIME_ENABLED

#include <eosio/testing/tester.hpp>
#include <test_contracts.hpp>
#include <boost/test/unit_test.hpp>
Expand Down Expand Up @@ -29,6 +27,7 @@ void limit_violated_test(const eosvmoc::config& eosvmoc_config) {
chain.set_code("eosio.token"_n, test_contracts::eosio_token_wasm());
chain.set_abi("eosio.token"_n, test_contracts::eosio_token_abi());

#ifdef EOSIO_EOS_VM_OC_RUNTIME_ENABLED
if (chain.control->is_eos_vm_oc_enabled()) {
BOOST_CHECK_EXCEPTION(
chain.push_action( "eosio.token"_n, "create"_n, "eosio.token"_n, mvo()
Expand All @@ -39,7 +38,9 @@ void limit_violated_test(const eosvmoc::config& eosvmoc_config) {
return expect_assert_message(e, "failed to compile wasm");
}
);
} else {
} else
#endif
{
chain.push_action( "eosio.token"_n, "create"_n, "eosio.token"_n, mvo()
( "issuer", "eosio.token" )
( "maximum_supply", "1000000.00 TOK" )
Expand Down Expand Up @@ -150,5 +151,3 @@ BOOST_AUTO_TEST_CASE( generated_code_size_limit ) { try {
} FC_LOG_AND_RETHROW() }

BOOST_AUTO_TEST_SUITE_END()

#endif

0 comments on commit 97dc35e

Please sign in to comment.