Posted to tcl by kbk at Sun Feb 28 21:58:35 GMT 2010view raw

  1.  
  2. ==== socket-2.1 tcp connection FAILED
  3. ==== Contents of test case:
  4.  
  5. # $x == "ready" at this point
  6. set sock [socket 127.0.0.1 $listen]
  7. lappend x [gets $f]
  8. close $sock
  9. lappend x [gets $f]
  10.  
  11. ---- Test generated error; Return code was: 1
  12. ---- Return code should have been one of: 0 2
  13. ---- errorInfo: couldn't open socket: connection refused
  14. while executing
  15. "socket 127.0.0.1 $listen"
  16. ("uplevel" body line 3)
  17. invoked from within
  18. "uplevel 1 $script"
  19. ---- errorCode: POSIX ECONNREFUSED {connection refused}
  20. ==== socket-2.1 FAILED
  21.  
  22.  
  23.  
  24. ==== socket-2.2 tcp connection with client port specified FAILED
  25. ==== Contents of test case:
  26.  
  27. # $x == "ready" at this point
  28. global port
  29. set sock [socket -myport $port 127.0.0.1 $listen]
  30. puts $sock hello
  31. flush $sock
  32. lappend x [gets $f]
  33. close $sock
  34. return $x
  35.  
  36. ---- Test generated error; Return code was: 1
  37. ---- Return code should have been one of: 0 2
  38. ---- errorInfo: couldn't open socket: connection refused
  39. while executing
  40. "socket -myport $port 127.0.0.1 $listen"
  41. ("uplevel" body line 4)
  42. invoked from within
  43. "uplevel 1 $script"
  44. ---- errorCode: POSIX ECONNREFUSED {connection refused}
  45. ==== socket-2.2 FAILED
  46.  
  47.  
  48.  
  49. ==== socket-2.7 echo server, one line FAILED
  50. ==== Contents of test case:
  51.  
  52. set s [socket 127.0.0.1 $listen]
  53. fconfigure $s -buffering line -translation lf
  54. puts $s "hello abcdefghijklmnop"
  55. after 1000
  56. set x [gets $s]
  57. close $s
  58. list $x [gets $f]
  59.  
  60. ---- Test generated error; Return code was: 1
  61. ---- Return code should have been one of: 0 2
  62. ---- errorInfo: couldn't open socket: connection refused
  63. while executing
  64. "socket 127.0.0.1 $listen"
  65. ("uplevel" body line 2)
  66. invoked from within
  67. "uplevel 1 $script"
  68. ---- errorCode: POSIX ECONNREFUSED {connection refused}
  69. ==== socket-2.7 FAILED
  70.  
  71.