Expect-5.43.0 make test有很多fail
时间:2010-06-20
来源:互联网
代码:
==== expect-1.4 glob pattern FAILED
==== Contents of test case:
expect "*"
exp_send "a\r"
set timeout 10
set x 0
expect "a" {set x 1}
set x
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: expect: spawn id exp4 not open
while executing
"expect "*""
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== expect-1.4 FAILED
==== expect-1.5 glob pattern buffering FAILED
==== Contents of test case:
expect "*"
exp_send "a\r"
set timeout 10
set x 0
expect "*" {set x 1}
set x
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: expect: spawn id exp4 not open
while executing
"expect "*""
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== expect-1.5 FAILED
==== expect-1.6 glob buffer FAILED
==== Contents of test case:
expect "*"
exp_send "philosophic\r"
set timeout 10
set x 0
expect "hi"
set x [string match *phi $expect_out(buffer)]
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: expect: spawn id exp4 not open
while executing
"expect "*""
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== expect-1.6 FAILED
==== expect-1.7 glob string FAILED
==== Contents of test case:
expect "*"
exp_send "philosophic\r"
set timeout 10
set x 0
expect "hi"
set expect_out(0,string)
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: expect: spawn id exp4 not open
while executing
"expect "*""
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== expect-1.7 FAILED
spawn_id: spawn id exp4 not open
logfile.test
via sendvia send_uservia send_stdoutvia send_ttypid.test
send.test
==== send-1.1 basic send operation FAILED
==== Contents of test case:
spawn cat
after 1000
send "foo\r"
expect foo
after 1000
send "\u0004"
expect eof
regexp "\r\nfoo\r\n" $expect_out(buffer)
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: send: spawn id exp5 not open
while executing
"send "\u0004""
("uplevel" body line 7)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== send-1.1 FAILED
==== send-1.2 send null FAILED
==== Contents of test case:
spawn od -c
send "a\u0000b\r"
after 1000
send \u0004
expect eof
regexp "a \\\\0 b" $expect_out(buffer)
---- Result was:
0
---- Result should have been (exact matching):
1
==== send-1.2 FAILED
spawn.test
==== spawn-1.4 spawn open file FAILED
==== Contents of test case:
set x 0
set y 0
set file [open /tmp/[pid] w]
puts $file "testing expect's spawn -open"
exp_close $file
set pid [exp_spawn -open [open /tmp/[pid]]]
expect "testing expect's spawn -open" {set x 1}
expect eof {set y 1}
exec rm /tmp/[pid]
exp_wait
list $x $y $pid
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: child killed: segmentation violation
while executing
"exec rm /tmp/[pid]"
("uplevel" body line 11)
invoked from within
"uplevel 1 $script"
---- errorCode: CHILDKILLED 1657 SIGSEGV {segmentation violation}
==== spawn-1.4 FAILED
stty.test
all.tcl: Total 22 Passed 15 Skipped 0 Failed 7
Sourced 0 Test Files.
Files with failing tests: logfile.test send.test spawn.test
rm -f .tmp
作者: xielingyun 发布时间: 2010-06-20
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28















