Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Turbo码先生
redis
提交
121ffc85
R
redis
项目概览
Turbo码先生
/
redis
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
redis
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
121ffc85
编写于
7月 11, 2011
作者:
A
antirez
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
better recap of failed tests.
上级
04e2410d
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
11 addition
and
13 deletion
+11
-13
tests/support/test.tcl
tests/support/test.tcl
+3
-5
tests/test_helper.tcl
tests/test_helper.tcl
+1
-1
tests/unit/other.tcl
tests/unit/other.tcl
+7
-7
未找到文件。
tests/support/test.tcl
浏览文件 @
121ffc85
...
...
@@ -98,9 +98,7 @@ proc test {name code {okpattern undefined}} {
incr ::num_tests
set details
{}
lappend details $::curfile
lappend details $::tags
lappend details $name
lappend details
"
$name
in
$::curfile
"
send_data_packet $::test_server_fd testing $name
...
...
@@ -111,7 +109,7 @@ proc test {name code {okpattern undefined}} {
lappend ::tests_failed $details
incr ::num_failed
send_data_packet $::test_server_fd err
$name
send_data_packet $::test_server_fd err
[
join $details
"
\n
"
]
}
else
{
# Re-raise, let handler up the stack take care of this.
error $error $::errorInfo
...
...
@@ -126,7 +124,7 @@ proc test {name code {okpattern undefined}} {
lappend ::tests_failed $details
incr ::num_failed
send_data_packet $::test_server_fd err
$name
send_data_packet $::test_server_fd err
[
join $details
"
\n
"
]
}
}
...
...
tests/test_helper.tcl
浏览文件 @
121ffc85
...
...
@@ -277,7 +277,7 @@ proc the_end {} {
puts
"
$time
seconds -
$name
"
}
if
{[
llength $::failed_tests
]}
{
puts
"
!!! WARNING: The following tests failed
\n
"
puts
"
\n
[
colorstr bold-red
{
!!! WARNING
}]
The following tests failed:
\n
"
foreach failed $::failed_tests
{
puts
"***
$failed
"
}
...
...
tests/unit/other.tcl
浏览文件 @
121ffc85
start_server
{
tags
{
"other"
}}
{
if
{
$::force
_failure
}
{
# This is used just for test suite development purposes.
test
{
Failing test
}
{
format err
}
{
ok
}
}
test
{
SAVE - make sure there are all the types as values
}
{
# Wait for a background saving in progress to terminate
waitForBgsave r
...
...
@@ -242,11 +249,4 @@ start_server {tags {"other"}} {
test
{
Perform a final SAVE to leave a clean DB on disk
}
{
r save
}
{
OK
}
if
{
$::force
_failure
}
{
# This is used just for test suite development purposes.
test
{
Failing test
}
{
format err
}
{
ok
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录