Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6cf4e98cee153baaeac2e2a00d2fc52e46a819f6
Ticket: 218967ffffffffffffffffffffffffffffffffff
Errors running "make test"
User & Date: nobody on 2000-10-26 01:08:44
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3352 Bug
    Version: 8.2.1
    SubmitDate: '1999-11-05'
    LastModified: '1999-11-08'
    Severity: LOW
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Solaris
    OSVersion: 2.6
    FixedDate: '1999-11-08'
    FixedInVersion: 8.2.2
    ClosedDate: '2000-10-25'
    
    
    Name:
    Jim McMaster
    
    Extensions:
    none
    
    CustomShell:
    none
    
    ReproducibleScript:
    Compiling under Solaris 2.6 with cc: WorkShop Compilers 4.2 30 Oct 1996
        C 4.2.  Run "make test"
    
    ObservedBehavior:
    event.test
        
        ==== event-1.1 Tcl_CreateFileHandler, reading FAILED
        ==== Contents of test case:
        
            testfilehandler close
            testfilehandler create 0 readable off
            testfilehandler clear 0
            testfilehandler oneevent
            set result ""
            lappend result [testfilehandler counts 0]
            testfilehandler fillpartial 0
            testfilehandler oneevent
            lappend result [testfilehandler counts 0]
            testfilehandler oneevent
            lappend result [testfilehandler counts 0]
            testfilehandler close
            set result
        
        ---- Result was:
        {0 0} {0 0} {0 0}
        ---- Result should have been:
        {0 0} {1 0} {2 0}
        ==== event-1.1 FAILED
        
        io.test
        
        ==== io-6.56 Tcl_GetsObj: incomplete lines should disable file events
        FAILED
        ==== Contents of test case:
        
            update
            set f [open "|[list $::tcltest::tcltest cat]" w+]
            fconfigure $f -buffering none
            puts -nonewline $f "foobar"
            fconfigure $f -blocking 0
            set x {}
            after 500 { lappend x timeout }
            fileevent $f readable { lappend x [gets $f] }
            vwait x
            vwait x
            fconfigure $f -blocking 1
            puts -nonewline $f "baz\n"
            after 500 { lappend x timeout }
            fconfigure $f -blocking 0
            vwait x
            vwait x
            close $f
            set x
        
        ---- Result was:
        timeout {} foobarbaz timeout
        ---- Result should have been:
        {} timeout foobarbaz timeout
        ==== io-6.56 FAILED
        
        
        ==== io-13.6 TranslateInputEOL: auto mode: saw cr in last segment
        FAILED
        ==== Contents of test case:
        
            # (chanPtr->flags & INPUT_SAW_CR)
            # This test may fail on slower machines.
        
            set f [open "|[list $::tcltest::tcltest cat]" w+]
            fconfigure $f -blocking 0 -buffering none -translation {auto lf}
        
            fileevent $f read "ready $f"
            proc ready {f} {
        lappend ::x [read $f] [testchannel queuedcr $f]
            }
            set x {}
        
            puts -nonewline $f "abcdefghj\r"
            after 500 {set y ok}
            vwait y
        
            puts -nonewline $f "\n01234"
            after 500 {set y ok}
            vwait y
        
            close $f
            set x
        
        ---- Result was:
        
        ---- Result should have been:
        {abcdefghj
        } 1 01234 0
        ==== io-13.6 FAILED
        
        
        ==== io-50.1 testing handler deletion FAILED
        ==== Contents of test case:
        
            removeFile test1
            set f [open test1 w]
            close $f
            set f [open test1 r]
            testchannelevent $f add readable [list delhandler $f]
            proc delhandler {f} {
        global z
        set z called
        testchannelevent $f delete 0
            }
            set z not_called
            update
            close $f
            set z
        
        ---- Result was:
        not_called
        ---- Result should have been:
        called
        ==== io-50.1 FAILED
        
        
        ==== io-50.2 testing handler deletion with multiple handlers FAILED
        ==== Contents of test case:
        
            removeFile test1
            set f [open test1 w]
            close $f
            set f [open test1 r]
            testchannelevent $f add readable [list delhandler $f 1]
            testchannelevent $f add readable [list delhandler $f 0]
            proc delhandler {f i} {
        global z
        lappend z "called delhandler $f $i"
        testchannelevent $f delete 0
            }
            set z ""
            update
            close $f
            string compare [string tolower $z]  [list [list called delhandler $f
        0] [list called delhandler $f 1]]
        
        ---- Result was:
        -1
        ---- Result should have been:
        0
        ==== io-50.2 FAILED
        
        
        ==== io-50.3 testing handler deletion with multiple handlers FAILED
        ==== Contents of test case:
        
            removeFile test1
            set f [open test1 w]
            close $f
            set f [open test1 r]
            testchannelevent $f add readable [list notcalled $f 1]
            testchannelevent $f add readable [list delhandler $f 0]
            set z ""
            proc notcalled {f i} {
        global z
        lappend z "notcalled was called!! $f $i"
            }
            proc delhandler {f i} {
        global z
        testchannelevent $f delete 1
        lappend z "delhandler $f $i called"
        testchannelevent $f delete 0
        lappend z "delhandler $f $i deleted myself"
            }
            set z ""
            update
            close $f
            string compare [string tolower $z]  [list [list delhandler $f 0
        called]  [list delhandler $f 0 deleted myself]]
        
        ---- Result was:
        -1
        ---- Result should have been:
        0
        ==== io-50.3 FAILED
        
        
        ==== io-50.4 testing handler deletion vs reentrant calls FAILED
        ==== Contents of test case:
        
            removeFile test1
            set f [open test1 w]
            close $f
            set f [open test1 r]
            testchannelevent $f add readable [list delrecursive $f]
            proc delrecursive {f} {
        global z u
        if {"$u" == "recursive"} {
            testchannelevent $f delete 0
            lappend z "delrecursive deleting recursive"
        } else {
            lappend z "delrecursive calling recursive"
            set u recursive
            update
        }
            }
            set u toplevel
            set z ""
            update
            close $f
            string compare [string tolower $z]  {{delrecursive calling
        recursive} {delrecursive deleting recursive}}
        
        ---- Result was:
        -1
        ---- Result should have been:
        0
        ==== io-50.4 FAILED
        
        
        ==== io-50.5 testing handler deletion vs reentrant calls FAILED
        ==== Contents of test case:
        
            removeFile test1
            set f [open test1 w]
            close $f
            set f [open test1 r]
            testchannelevent $f add readable [list notcalled $f]
            testchannelevent $f add readable [list del $f]
            proc notcalled {f} {
        global z
        lappend z "notcalled was called!! $f"
            }
            proc del {f} {
        global z u
        if {"$u" == "recursive"} {
            testchannelevent $f delete 1
            testchannelevent $f delete 0
            lappend z "del deleted notcalled"
            lappend z "del deleted myself"
        } else {
            set u recursive
            lappend z "del calling recursive"
            update
            lappend z "del after update"
        }
            }
            set z ""
            set u toplevel
            update
            close $f
            string compare [string tolower $z]  [list {del calling recursive}
        {del deleted notcalled}  {del deleted myself} {del after update}]
        
        ---- Result was:
        -1
        ---- Result should have been:
        0
        ==== io-50.5 FAILED
        
        
        ==== io-50.6 testing handler deletion vs reentrant calls FAILED
        ==== Contents of test case:
        
            removeFile test1
            set f [open test1 w]
            close $f
            set f [open test1 r]
            testchannelevent $f add readable [list second $f]
            testchannelevent $f add readable [list first $f]
            proc first {f} {
        global u z
        if {"$u" == "toplevel"} {
            lappend z "first called"
            set u first
            update
            lappend z "first after update"
        } else {
            lappend z "first called not toplevel"
        }
            }
            proc second {f} {
        global u z
        if {"$u" == "first"} {
            lappend z "second called, first time"
            set u second
            testchannelevent $f delete 0
        } elseif {"$u" == "second"} {
            lappend z "second called, second time"
            testchannelevent $f delete 0
        } else {
            lappend z "second called, cannot happen!"
            testchannelevent $f removeall
        }
            }
            set z ""
            set u toplevel
            update
            close $f
            string compare [string tolower $z]  [list {first called} {first
        called not toplevel}  {second called, first time} {second called, second
        time}  {first after update}]
        
        ---- Result was:
        -1
        ---- Result should have been:
        0
        ==== io-50.6 FAILED
        
        Tests ended at Thu Oct 07 15:06:03 MDT 1999
        all.tcl:Total8742Passed7991Skipped742Failed9
        Sourced 119 Test Files.
        Files with failing tests: event.test io.test
        Number of tests skipped for each constraint:
        1595
        16doTestsWithRemoteServer
        48emptyTest
        2hasIsoLocale
        8installedTcl
        27knownBug
        122macOnly
        154nonPortable
        16nt
        331pcOnly
        1umask2
        2unixOnly && !testthread
    
    DesiredBehavior:
    All tests complete successfully
    
    
    
    The user didn't mention it, but these appear to be the errors
    when threading is enabled, all of which are fixed in 8.2.2. 
    -- 11/08/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.2.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "49. Threading"
  10. title changed to: "Errors running "make test""
  11. type changed to: "Bug"