From d47b35ada7b0002a4a0931ffa8c98aadc5498bd2 Mon Sep 17 00:00:00 2001 From: Matt Witherspoon <32485495+spoonincode@users.noreply.github.com> Date: Mon, 6 May 2024 12:15:51 -0400 Subject: [PATCH] fix eosvmoc_limits_tests on non-x86 and non-Linux --- unittests/eosvmoc_limits_tests.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/unittests/eosvmoc_limits_tests.cpp b/unittests/eosvmoc_limits_tests.cpp index 72ec3c0700..1c4b28e142 100644 --- a/unittests/eosvmoc_limits_tests.cpp +++ b/unittests/eosvmoc_limits_tests.cpp @@ -1,5 +1,3 @@ -#ifdef EOSIO_EOS_VM_OC_RUNTIME_ENABLED - #include #include #include @@ -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() @@ -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" ) @@ -140,5 +141,3 @@ BOOST_AUTO_TEST_CASE( generated_code_size_limit ) { try { } FC_LOG_AND_RETHROW() } BOOST_AUTO_TEST_SUITE_END() - -#endif