+ -
当前位置:首页 → 问答吧 → Expect-5.43.0 make test有很多fail

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
编译到Expect-5.43.0的时候make test出现了很多fail不知道这个有没有影响呢,lfs版本6.6,宿主机系统 fedora 13

作者: xielingyun   发布时间: 2010-06-20

热门下载

更多