Posted to tcl by oehhar at Wed May 21 13:10:41 GMT 2014view raw

  1. [oehhar@rose unix]$ make test-tcl TESTFLAGS="-file socket.test -match socket-14.\* -verbose bpste"
  2. LD_LIBRARY_PATH=`pwd`: TCLLIBPATH="/home/oehhar/test/tcl-trunk-merged/unix/pkgs" TCL_LIBRARY="/home/oehhar/test/tcl-trunk-merged/library" ./tcltest /home/oehhar/test/tcl-trunk-merged/tests/all.tcl -file socket.test -match socket-14.\* -verbose bpste
  3. Tests running in interp: /home/oehhar/test/tcl-trunk-merged/unix/tcltest
  4. Tests located in: /home/oehhar/test/tcl-trunk-merged/tests
  5. Tests running in: /home/oehhar/test/tcl-trunk-merged/unix
  6. Temporary files stored in /home/oehhar/test/tcl-trunk-merged/unix
  7. Test files run in separate interpreters
  8. Running tests that match: socket-14.*
  9. Skipping test files that match: l.*.test
  10. Only running test files that match: socket.test
  11. Tests began at Wed May 21 15:05:00 CEST 2014
  12. socket.test
  13. ---- socket-14.0.0 start
  14. ++++ socket-14.0.0 PASSED
  15. ++++ socket-14.0.1 SKIPPED: localhost_v6
  16. ---- socket-14.1 start
  17. ++++ socket-14.1 PASSED
  18. ---- socket-14.2 start
  19.  
  20.  
  21. ==== socket-14.2 [socket -async] fileevent connection refused FAILED
  22. ==== Contents of test case:
  23.  
  24. set client [socket -async localhost [randport]]
  25. fileevent $client writable {set x ok}
  26. set after [after $latency {set x timeout}]
  27. vwait x
  28. after cancel $after
  29. lappend x [fconfigure $client -error]
  30.  
  31. ---- Result was:
  32. timeout {connection refused}
  33. ---- Result should have been (exact matching):
  34. ok {connection refused}
  35. ==== socket-14.2 FAILED
  36.  
  37. ++++ socket-14.3 SKIPPED: localhost_v6
  38. ---- socket-14.4 start
  39. ++++ socket-14.4 PASSED
  40. ---- socket-14.5 start
  41. ++++ socket-14.5 PASSED
  42. ---- socket-14.6.0 start
  43. ++++ socket-14.6.0 PASSED
  44. ---- socket-14.6.1 start
  45.  
  46.  
  47. ==== socket-14.6.1 [socket -async] with no event loop and server listening on IPv6 FAILED
  48. ==== Contents of test case:
  49.  
  50. set client [socket -async localhost $port]
  51. for {set i 0} {$i < 50} {incr i } {
  52. update
  53. if {$x ne ""} {
  54. lappend x [gets $client]
  55. break
  56. }
  57. after 100
  58. }
  59. set x
  60.  
  61. ---- Result was:
  62.  
  63. ---- Result should have been (exact matching):
  64. ok bye
  65. ==== socket-14.6.1 FAILED
  66.  
  67. ---- socket-14.7.0 start
  68. ++++ socket-14.7.0 PASSED
  69. ---- socket-14.7.1 start
  70.  
  71.  
  72. ==== socket-14.7.1 pending [socket -async] and blocking [gets], server is IPv6 FAILED
  73. ==== Contents of test case:
  74.  
  75. set sock [socket -async localhost $port]
  76. list [fconfigure $sock -error] [gets $sock] [fconfigure $sock -error]
  77.  
  78. ---- Test generated error; Return code was: 1
  79. ---- Return code should have been one of: 0 2
  80. ---- errorInfo: error reading "socke353a0": socket is not connected
  81. while executing
  82. "gets $sock"
  83. ("uplevel" body line 3)
  84. invoked from within
  85. "uplevel 1 $script"
  86. ---- errorCode: POSIX ENOTCONN {socket is not connected}
  87. ==== socket-14.7.1 FAILED
  88.  
  89. ---- socket-14.7.2 start
  90. ++++ socket-14.7.2 PASSED
  91. ---- socket-14.8.0 start
  92. ++++ socket-14.8.0 PASSED
  93. ---- socket-14.8.1 start
  94.  
  95.  
  96. ==== socket-14.8.1 pending [socket -async] and nonblocking [gets], server is IPv6 FAILED
  97. ==== Contents of test case:
  98.  
  99. set sock [socket -async localhost $port]
  100. fconfigure $sock -blocking 0
  101. for {set i 0} {$i < 50} {incr i } {
  102. if {[catch {gets $sock} x] || $x ne "" || ![fblocked $sock]} break
  103. after 200
  104. }
  105. set x
  106.  
  107. ---- Result was:
  108. error reading "sockeca470": socket is not connected
  109. ---- Result should have been (exact matching):
  110. ok
  111. ==== socket-14.8.1 FAILED
  112.  
  113. ---- socket-14.8.2 start
  114. ++++ socket-14.8.2 PASSED
  115. ---- socket-14.9.0 start
  116. ++++ socket-14.9.0 PASSED
  117. ---- socket-14.9.1 start
  118. ^Cmake: *** wait: Keine Kind-Prozesse. Schluss.
  119. make: *** Warte auf noch nicht beendete Prozesse...
  120. make: *** wait: Keine Kind-Prozesse. Schluss.
  121. [oehhar@rose unix]$