使用capsule编写合约时,在tests引入
[dependencies]
sha3 = {version = "0.9.1",default-features = false}
后报错
memory allocation of 4 bytes failed
error: test failed, to rerun pass '-p tests --lib'
Caused by:
process didn't exit successfully: `/home/.../ckb_demo/target/debug/deps/tests-d92e9bff3fa5f7e0 'hello_world::test_basic' --exact --nocapture` (signal: 6, SIGABRT: process abort signal)
终端进程“cargo 'test', '--package', 'tests', '--lib', '--', 'hello_world::test_basic', '--exact', '--nocapture'”已终止,退出代码: 101。
环境:
Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Ubuntu 19.10 \n \l
这个原因是什么?