aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-06-12 18:26:05 +0800
committerGitHub <noreply@github.com>2018-06-12 18:26:05 +0800
commit1f1ec180fb15431e5d398ad9346d206e284a35df (patch)
tree2b1ed997b1e214ee3383c8e49be59ea5fc6064d2 /test/libsolidity
parent56a965ea96203201155fc50a893931e7e60fddbe (diff)
parent9f546cfafcc4a12c6574550724a82074bb0afb66 (diff)
downloaddexon-solidity-1f1ec180fb15431e5d398ad9346d206e284a35df.tar
dexon-solidity-1f1ec180fb15431e5d398ad9346d206e284a35df.tar.gz
dexon-solidity-1f1ec180fb15431e5d398ad9346d206e284a35df.tar.bz2
dexon-solidity-1f1ec180fb15431e5d398ad9346d206e284a35df.tar.lz
dexon-solidity-1f1ec180fb15431e5d398ad9346d206e284a35df.tar.xz
dexon-solidity-1f1ec180fb15431e5d398ad9346d206e284a35df.tar.zst
dexon-solidity-1f1ec180fb15431e5d398ad9346d206e284a35df.zip
Merge pull request #4273 from ethereum/soltestExceptions
Improve exception handling in soltest and isoltest.
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/SyntaxTest.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/libsolidity/SyntaxTest.cpp b/test/libsolidity/SyntaxTest.cpp
index 1c2355d5..430073a0 100644
--- a/test/libsolidity/SyntaxTest.cpp
+++ b/test/libsolidity/SyntaxTest.cpp
@@ -268,9 +268,16 @@ int SyntaxTest::registerTests(
[fullpath]
{
BOOST_REQUIRE_NO_THROW({
- stringstream errorStream;
- if (!SyntaxTest(fullpath.string()).run(errorStream))
- BOOST_ERROR("Test expectation mismatch.\n" + errorStream.str());
+ try
+ {
+ stringstream errorStream;
+ if (!SyntaxTest(fullpath.string()).run(errorStream))
+ BOOST_ERROR("Test expectation mismatch.\n" + errorStream.str());
+ }
+ catch (boost::exception const& _e)
+ {
+ BOOST_ERROR("Exception during syntax test: " << boost::diagnostic_information(_e));
+ }
});
},
_path.stem().string(),