Merge pull request #4461 from ethereum/fuzzer-fix

Catch the proper exceptions in solfuzzer
This commit is contained in:
chriseth 2018-07-12 00:22:38 +02:00 committed by GitHub
commit 71777ce729
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,6 +135,10 @@ void testCompiler(bool optimize)
for (Json::Value const& error: outputJson["errors"])
{
string invalid = contains(error.asString(), vector<string>{
// StandardJSON error types
"Exception",
"InternalCompilerError",
// Old-school error messages
"Internal compiler error",
"Exception during compilation",
"Unknown exception during compilation",