diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-06-15 18:18:00 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-07-02 18:56:33 +0800 |
commit | 334c023c7231810f28ca5ea04f14df3f722cea07 (patch) | |
tree | a64e19e9388e1ddc0381cc464cf4eceb19b4e339 /test/liblll/EndToEndTest.cpp | |
parent | a5608b31a759031377ec91300ad7a470d48bb1d2 (diff) | |
download | dexon-solidity-334c023c7231810f28ca5ea04f14df3f722cea07.tar.gz dexon-solidity-334c023c7231810f28ca5ea04f14df3f722cea07.tar.zst dexon-solidity-334c023c7231810f28ca5ea04f14df3f722cea07.zip |
Determine transaction status in RPC sessions.
Diffstat (limited to 'test/liblll/EndToEndTest.cpp')
-rw-r--r-- | test/liblll/EndToEndTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/liblll/EndToEndTest.cpp b/test/liblll/EndToEndTest.cpp index fd8099f2..ceaf450e 100644 --- a/test/liblll/EndToEndTest.cpp +++ b/test/liblll/EndToEndTest.cpp @@ -50,6 +50,7 @@ BOOST_AUTO_TEST_CASE(bare_panic) { char const* sourceCode = "(panic)"; compileAndRunWithoutCheck(sourceCode); + BOOST_REQUIRE(!m_transactionSuccessful); BOOST_REQUIRE(m_output.empty()); } @@ -57,6 +58,7 @@ BOOST_AUTO_TEST_CASE(panic) { char const* sourceCode = "{ (panic) }"; compileAndRunWithoutCheck(sourceCode); + BOOST_REQUIRE(!m_transactionSuccessful); BOOST_REQUIRE(m_output.empty()); } @@ -69,6 +71,7 @@ BOOST_AUTO_TEST_CASE(macro_zeroarg) (zeroarg))) )"; compileAndRun(sourceCode); + BOOST_CHECK(m_transactionSuccessful); BOOST_CHECK(callFallback() == encodeArgs(u256(0x1234))); } |