Merge pull request #9281 from ethereum/fix-6772

Fuzzer: Add a specialized StackTooDeepError Exception that is caught …
This commit is contained in:
chriseth
2020-07-01 11:47:35 +02:00
committed by GitHub
10 changed files with 40 additions and 17 deletions
+1 -1
View File
@@ -1242,7 +1242,7 @@ BOOST_AUTO_TEST_CASE(use_stack_optimization)
BOOST_CHECK(result["errors"][0]["severity"] == "error");
BOOST_REQUIRE(result["errors"][0]["message"].isString());
BOOST_CHECK(result["errors"][0]["message"].asString().find("Stack too deep when compiling inline assembly") != std::string::npos);
BOOST_CHECK(result["errors"][0]["type"] == "YulException");
BOOST_CHECK(result["errors"][0]["type"] == "CompilerError");
}
BOOST_AUTO_TEST_CASE(standard_output_selection_wildcard)
+3
View File
@@ -96,6 +96,9 @@ void FuzzerUtil::testCompiler(string const& _input, bool _optimize)
catch (UnimplementedFeatureError const&)
{
}
catch (StackTooDeepError const&)
{
}
}
void FuzzerUtil::runCompiler(string const& _input, bool _quiet)