LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 861|回复: 0

Expect-5.43.0 make test有很多fail

[复制链接]
发表于 2010-6-20 15:10:51 | 显示全部楼层 |阅读模式

  1. ==== expect-1.4 glob pattern FAILED
  2. ==== Contents of test case:

  3.     expect "*"
  4.     exp_send "a\r"

  5.     set timeout 10
  6.     set x 0
  7.     expect "a" {set x 1}
  8.     set x

  9. ---- Test generated error; Return code was: 1
  10. ---- Return code should have been one of: 0 2
  11. ---- errorInfo: expect: spawn id exp4 not open
  12.     while executing
  13. "expect "*""
  14.     ("uplevel" body line 2)
  15.     invoked from within
  16. "uplevel 1 $script"
  17. ---- errorCode: NONE
  18. ==== expect-1.4 FAILED



  19. ==== expect-1.5 glob pattern buffering FAILED
  20. ==== Contents of test case:

  21.     expect "*"
  22.     exp_send "a\r"

  23.     set timeout 10
  24.     set x 0
  25.     expect "*" {set x 1}
  26.     set x

  27. ---- Test generated error; Return code was: 1
  28. ---- Return code should have been one of: 0 2
  29. ---- errorInfo: expect: spawn id exp4 not open
  30.     while executing
  31. "expect "*""
  32.     ("uplevel" body line 2)
  33.     invoked from within
  34. "uplevel 1 $script"
  35. ---- errorCode: NONE
  36. ==== expect-1.5 FAILED



  37. ==== expect-1.6 glob buffer FAILED
  38. ==== Contents of test case:

  39.     expect "*"
  40.     exp_send "philosophic\r"

  41.     set timeout 10
  42.     set x 0
  43.     expect "hi"
  44.     set x [string match *phi $expect_out(buffer)]

  45. ---- Test generated error; Return code was: 1
  46. ---- Return code should have been one of: 0 2
  47. ---- errorInfo: expect: spawn id exp4 not open
  48.     while executing
  49. "expect "*""
  50.     ("uplevel" body line 2)
  51.     invoked from within
  52. "uplevel 1 $script"
  53. ---- errorCode: NONE
  54. ==== expect-1.6 FAILED



  55. ==== expect-1.7 glob string FAILED
  56. ==== Contents of test case:

  57.     expect "*"
  58.     exp_send "philosophic\r"

  59.     set timeout 10
  60.     set x 0
  61.     expect "hi"
  62.     set expect_out(0,string)

  63. ---- Test generated error; Return code was: 1
  64. ---- Return code should have been one of: 0 2
  65. ---- errorInfo: expect: spawn id exp4 not open
  66.     while executing
  67. "expect "*""
  68.     ("uplevel" body line 2)
  69.     invoked from within
  70. "uplevel 1 $script"
  71. ---- errorCode: NONE
  72. ==== expect-1.7 FAILED

  73. spawn_id: spawn id exp4 not open
  74. logfile.test
  75. via sendvia send_uservia send_stdoutvia send_ttypid.test
  76. send.test


  77. ==== send-1.1 basic send operation FAILED
  78. ==== Contents of test case:

  79.     spawn cat
  80.     after 1000
  81.     send "foo\r"
  82.     expect foo
  83.     after 1000
  84.     send "\u0004"
  85.     expect eof
  86.     regexp "\r\nfoo\r\n" $expect_out(buffer)

  87. ---- Test generated error; Return code was: 1
  88. ---- Return code should have been one of: 0 2
  89. ---- errorInfo: send: spawn id exp5 not open
  90.     while executing
  91. "send "\u0004""
  92.     ("uplevel" body line 7)
  93.     invoked from within
  94. "uplevel 1 $script"
  95. ---- errorCode: NONE
  96. ==== send-1.1 FAILED



  97. ==== send-1.2 send null FAILED
  98. ==== Contents of test case:

  99.     spawn od -c
  100.     send "a\u0000b\r"
  101.     after 1000
  102.     send \u0004
  103.     expect eof
  104.     regexp "a  \\\\0   b" $expect_out(buffer)

  105. ---- Result was:
  106. 0
  107. ---- Result should have been (exact matching):
  108. 1
  109. ==== send-1.2 FAILED

  110. spawn.test


  111. ==== spawn-1.4 spawn open file FAILED
  112. ==== Contents of test case:

  113.         set x 0
  114.         set y 0

  115.         set file [open /tmp/[pid] w]
  116.         puts $file "testing expect's spawn -open"
  117.         exp_close $file
  118.         set pid [exp_spawn -open [open /tmp/[pid]]]
  119.         expect "testing expect's spawn -open" {set x 1}
  120.         expect eof {set y 1}
  121.         exec rm /tmp/[pid]
  122.         exp_wait
  123.         list $x $y $pid

  124. ---- Test generated error; Return code was: 1
  125. ---- Return code should have been one of: 0 2
  126. ---- errorInfo: child killed: segmentation violation
  127.     while executing
  128. "exec rm /tmp/[pid]"
  129.     ("uplevel" body line 11)
  130.     invoked from within
  131. "uplevel 1 $script"
  132. ---- errorCode: CHILDKILLED 1657 SIGSEGV {segmentation violation}
  133. ==== spawn-1.4 FAILED

  134. stty.test
  135. all.tcl:        Total   22      Passed  15      Skipped 0       Failed  7
  136. Sourced 0 Test Files.
  137. Files with failing tests: logfile.test send.test spawn.test
  138. rm -f .tmp
复制代码

编译到Expect-5.43.0的时候make test出现了很多fail不知道这个有没有影响呢,lfs版本6.6,宿主机系统 fedora 13
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表