Catch the proper exceptions in solfuzzer

This commit is contained in:
Alex Beregszaszi
2018-07-11 23:49:14 +02:00
committed by chriseth
parent 2b8091526f
commit b248fc6436
+4
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",