diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-12-18 19:08:11 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-12-18 23:02:37 +0800 |
commit | ba15bc0a2325c50578247c3ee477a3d49a6f8cf1 (patch) | |
tree | 19fcec21f7420b50d9aba4850758cad535782e8e /test | |
parent | c2ec6d71b4707dab9b7727347077904b7a90eaf2 (diff) | |
download | dexon-solidity-ba15bc0a2325c50578247c3ee477a3d49a6f8cf1.tar.gz dexon-solidity-ba15bc0a2325c50578247c3ee477a3d49a6f8cf1.tar.zst dexon-solidity-ba15bc0a2325c50578247c3ee477a3d49a6f8cf1.zip |
Fail if parsing failed in AnalysisFramework
Otherwise Compilerstack::analyze will throw an exception.
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/AnalysisFramework.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libsolidity/AnalysisFramework.cpp b/test/libsolidity/AnalysisFramework.cpp index 8a72f996..abeecd32 100644 --- a/test/libsolidity/AnalysisFramework.cpp +++ b/test/libsolidity/AnalysisFramework.cpp @@ -52,7 +52,7 @@ AnalysisFramework::parseAnalyseAndReturnError( m_compiler.setEVMVersion(dev::test::Options::get().evmVersion()); if (!m_compiler.parse()) { - BOOST_ERROR("Parsing contract failed in analysis test suite:" + formatErrors()); + BOOST_FAIL("Parsing contract failed in analysis test suite:" + formatErrors()); } m_compiler.analyze(); |