Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 25754d79588da013c0789e50a7ddec2a1625026b
Ticket: 575835ffffffffffffffffffffffffffffffffff
event.test needs writable .
User & Date: dgp on 2002-07-01 06:33:45
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    See Tcl Bug 575817.
    
    event.test fails:
    
    ==== event-6.1 BgErrorDeleteProc procedure FAILED
    ==== Contents of test case:
    
        catch {interp delete foo}
        interp create foo
        foo eval {
            proc bgerror args {
                global errorInfo
                set f [open err.out r+]
                seek $f 0 end
                puts $f "$args $errorInfo"
                close $f
            }
            after 100 {error "first error"}
            after 100 {error "second error"}
        }
        makeFile Unmodified err.out
        after 100 {interp delete foo}
        after 200
        update
        set f [open err.out r]
        set result [read $f]
        close $f
        removeFile err.out
        set result
    
    ---- Result was:
    couldn't open "err.out": no such file or directory
    ---- Result should have been (exact matching):
    Unmodified
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ==== event-6.1 FAILED
    
    
    ==== event-11.5 Tcl_VwaitCmd procedure: round robin
    scheduling, 2 sources FAILED==== Contents of test case:
    
        set f1 [open test1 w]
        proc accept {s args} {
            puts $s foobar
            close $s
        }
        catch {set s1 [socket -server accept 0]}
        after 1000
        catch {set s2 [socket 127.0.0.1 [lindex [fconfigure
    $s1 -sockname] 2]]}
        close $s1
        set x 0
        set y 0
        set z 0
        fileevent $s2 readable { incr z }
        vwait z
        fileevent $f1 writable { incr x; if { $y == 3 } {
    set z done } }
        fileevent $s2 readable { incr y; if { $x == 3 } {
    set z done } }
        vwait z
        close $f1
        close $s2
        file delete test1 test2
        list $x $y $z
    
    ---- Result was:
    couldn't open "test1": permission denied
    ---- Result should have been (exact matching):
    3 3 done
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ==== event-11.5 FAILED
    
    
    ==== event-11.6 Tcl_VwaitCmd procedure: round robin
    scheduling, same source FAILED
    ==== Contents of test case:
    
        file delete test1 test2
        set f1 [open test1 w]
        set f2 [open test2 w]
        set x 0
        set y 0
        set z 0
        update
        fileevent $f1 writable { incr x; if { $y == 3 } {
    set z done } }
        fileevent $f2 writable { incr y; if { $x == 3 } {
    set z done } }
        vwait z
        close $f1
        close $f2
        file delete test1 test2
        list $x $y $z
    
    ---- Result was:
    couldn't open "test1": permission denied
    ---- Result should have been (exact matching):
    3 3 done
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ==== event-11.6 FAILED
    
    
  4. foundin changed to: "obsolete: 8.4a5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "02. Event Loops"
  10. title changed to: "event.test needs writable ."
  11. type changed to: "Bug"