From 591a5fff07ed5cebc1cb236d74e2cc572d05cec1 Mon Sep 17 00:00:00 2001 From: Djordje Mijovic Date: Mon, 11 May 2020 09:26:27 +0200 Subject: [PATCH] isoltest: WhiskersError and YulException treated differently when enforcing viaYul --- test/libsolidity/SemanticTest.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/libsolidity/SemanticTest.cpp b/test/libsolidity/SemanticTest.cpp index ab454cb28..33d40c899 100644 --- a/test/libsolidity/SemanticTest.cpp +++ b/test/libsolidity/SemanticTest.cpp @@ -13,6 +13,8 @@ */ #include +#include +#include #include #include #include @@ -27,6 +29,7 @@ using namespace std; using namespace solidity; +using namespace solidity::yul; using namespace solidity::util; using namespace solidity::util::formatting; using namespace solidity::frontend::test; @@ -201,6 +204,16 @@ TestCase::TestResult SemanticTest::run(ostream& _stream, string const& _linePref return TestResult::Failure; } } + catch (WhiskersError const&) + { + // this is an error in Whiskers template, so should be thrown anyway + throw; + } + catch (YulException const&) + { + // this should be an error in yul compilation or translation + throw; + } catch (boost::exception const&) { if (compileViaYul && !m_runWithYul)