Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
5cc9cda6
Y
YTBP
项目概览
YottaChain
/
YTBP
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
YTBP
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5cc9cda6
编写于
5月 02, 2018
作者:
A
arhag
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix wasm_tests/eosio_abi and bootseq_tests
上级
18cf1e3c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
8 deletion
+9
-8
libraries/testing/tester.cpp
libraries/testing/tester.cpp
+4
-4
unittests/api_tests.cpp
unittests/api_tests.cpp
+1
-0
unittests/bootseq_tests.cpp
unittests/bootseq_tests.cpp
+4
-0
unittests/wasm_tests.cpp
unittests/wasm_tests.cpp
+0
-4
未找到文件。
libraries/testing/tester.cpp
浏览文件 @
5cc9cda6
...
...
@@ -218,8 +218,8 @@ namespace eosio { namespace testing {
try
{
push_transaction
(
trx
);
}
catch
(
const
fc
::
exception
&
ex
)
{
//return error(ex.top_message());
return
error
(
ex
.
to_detail_string
());
return
error
(
ex
.
top_message
());
// top_message() is assumed by many tests; otherwise they fail
//
return error(ex.to_detail_string());
}
produce_block
();
BOOST_REQUIRE_EQUAL
(
true
,
chain_has_transaction
(
trx
.
id
()));
...
...
@@ -275,7 +275,7 @@ namespace eosio { namespace testing {
return
push_transaction
(
trx
);
}
FC_CAPTURE_AND_RETHROW
(
(
code
)(
acttype
)(
auths
)(
data
)(
expiration
)
)
}
action
base_tester
::
get_action
(
account_name
code
,
action_name
acttype
,
vector
<
permission_level
>
auths
,
action
base_tester
::
get_action
(
account_name
code
,
action_name
acttype
,
vector
<
permission_level
>
auths
,
const
variant_object
&
data
)
const
{
const
auto
&
acnt
=
control
->
db
().
get
<
account_object
,
by_name
>
(
code
);
auto
abi
=
acnt
.
get_abi
();
...
...
@@ -650,7 +650,7 @@ namespace eosio { namespace testing {
void
base_tester
::
push_genesis_block
()
{
set_code
(
config
::
system_account_name
,
eosio_bios_wast
);
set_abi
(
config
::
system_account_name
,
eosio_bios_abi
);
//produce_block();
}
...
...
unittests/api_tests.cpp
浏览文件 @
5cc9cda6
...
...
@@ -905,6 +905,7 @@ BOOST_FIXTURE_TEST_CASE(db_tests, TESTER) { try {
N
(
testapi2
),
WASM_TEST_ACTION
(
"test_db"
,
"test_invalid_access"
),
fc
::
raw
::
pack
(
ia2
)),
N
(
testapi2
)
);
wdump
((
res
));
BOOST_CHECK_EQUAL
(
boost
::
algorithm
::
ends_with
(
res
,
"db access violation"
),
true
);
...
...
unittests/bootseq_tests.cpp
浏览文件 @
5cc9cda6
...
...
@@ -220,14 +220,18 @@ BOOST_FIXTURE_TEST_CASE( bootseq_test, bootseq_tester ) {
}
ilog
(
"."
);
#warning Complete this test
/*
// Set code eosio.system from eosio.bios to eosio.system
set_code_abi(config::system_account_name, eosio_system_wast, eosio_system_abi);
ilog(".");
// Register these genesis accts as producer account
for (auto gen_acc : gen_accounts) {
// BOOST_REQUIRE_EQUAL(success(), regproducer(gen_acc));
}
*/
}
FC_LOG_AND_RETHROW
()
}
...
...
unittests/wasm_tests.cpp
浏览文件 @
5cc9cda6
...
...
@@ -1000,10 +1000,6 @@ BOOST_FIXTURE_TEST_CASE(noop, TESTER) try {
BOOST_FIXTURE_TEST_CASE
(
eosio_abi
,
TESTER
)
try
{
produce_blocks
(
2
);
set_code
(
config
::
system_account_name
,
eosio_system_wast
);
set_abi
(
config
::
system_account_name
,
eosio_system_abi
);
produce_block
();
const
auto
&
accnt
=
control
->
db
().
get
<
account_object
,
by_name
>
(
config
::
system_account_name
);
abi_def
abi
;
BOOST_REQUIRE_EQUAL
(
abi_serializer
::
to_abi
(
accnt
.
abi
,
abi
),
true
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录