提交 ee439701 编写于 作者: K Kevin Heifner

Add test that reproduces eosc crash #876

上级 fbdc9136
......@@ -460,6 +460,16 @@ if [ $count == 0 ]; then
fi
getTransactionId "$INFO"
#
# Setting simpledb contract without simpledb account was causing core dump in eosc.
# Verify eosc generates an error, but does not core dump.
#
INFO="$( { programs/eosc/eosc --host $SERVER --port $PORT --wallet-port 8899 set contract simpledb contracts/simpledb/simpledb.wast contracts/simpledb/simpledb.abi ; } 2>&1 )"
rc=$?
if [ $rc -eq 0 ] || [ $rc -eq 139 ]; then # 139 SIGSEGV
error "FAILURE - $1 returned error code $rc, should have failed to execute."
fi
#
# Producer
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册