Skip to content
Tcl Source Code View Ticket
Login

View Ticket

test suite failures

Deleted217901ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:45:40
OriginalBugID: 2550 Bug
Version: 8.2b3
SubmitDate: '1999-08-15'
LastModified: '1999-08-31'
Severity: SER
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 2600 2608 2115
OS: Solaris
OSVersion: 2.6
Machine: Other
FixedDate: '2000-10-25'
ClosedDate: '1999-08-31'


Name:
Larry W. Virden

CVS:
August 14, 1999 22:45 EDT

CustomShell:
only the latest cvs modules

Comments:
I sincerely doubt that this is a site specific
    set of problems.

ReproducibleScript:
/vol/tclsrcsol/tcl82/tcl8.2b1/unix/configure  --prefix=/ldata2/tcl
    --exec-prefix=/ldata2/tcl/sun4 --enable-shared --with-cc=cc
    --with-tclincl=/ldata2/tcl --with-tcllib=/ldata2/tcl/sun4/lib
    --with-tclconfig=/ldata2/tcl/sun4/lib --enable-threads
    make
    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
    
    
    ==== 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
        }
        set s1 [socket -server accept 5001]
        after 1000
        set s2 [socket 127.0.0.1 5001]
        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
    
    ==== Test generated error:
    couldn't open socket: address already in use
    ---- Result should have been:
    3 3 done
    ==== event-11.5 FAILED
    
    exec.test
    execute.test
    expr-old.test
    expr.test
    fCmd.test
    
    ==== fCmd-27.5 TclFileAttrsCmd - setting one option FAILED
    ==== Contents of test case:
    
        catch {file delete -force -- foo.tmp}
        createfile foo.tmp
        set attrs [file attributes foo.tmp]
        list [catch {eval file attributes foo.tmp [lrange $attrs 0 1]} msg]
    $msg [file delete -force -- foo.tmp]
    
    ---- Result was:
    1 {could not set group for file "foo.tmp": not owner} {}
    ---- Result should have been:
    0 {} {}
    ==== fCmd-27.5 FAILED
    
    
    ==== fCmd-27.6 TclFileAttrsCmd - setting more than one option FAILED
    ==== Contents of test case:
    
        catch {file delete -force -- foo.tmp}
        createfile foo.tmp
        set attrs [file attributes foo.tmp]
        list [catch {eval file attributes foo.tmp [lrange $attrs 0 3]} msg]
    $msg [file delete -force -- foo.tmp]
    
    ---- Result was:
    1 {could not set group for file "foo.tmp": not owner} {}
    ---- Result should have been:
    0 {} {}
    ==== fCmd-27.6 FAILED
    
    http.test
    Running httpd in thread 5
    
    ==== http-1.1 http::config FAILED
    ==== Contents of test case:
    
        http::config
    
    ---- Result was:
    -accept */* -proxyfilter http::ProxyRequired -proxyhost {} -proxyport {}
    -useragent {Tcl http client package 2.0}
    ---- Result should have been:
    -accept */* -proxyfilter http::ProxyRequired -proxyhost {} -proxyport {}
    -useragent {Tcl http client package 2.1}
    ==== http-1.1 FAILED
    
    httpold.test
    Running http 1.0 tests in slave interp
    httpold.test:   Total   31      Passed  31      Skipped 0       Failed
    0
    
    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-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
    
    reg.test
    !!! bypassed 22 tests in reg-22, `reg multicharacter collating
    elements'
    !!! bypassed 1 tests in reg-25, `reg mixed quantifiers'
    
    thread.test
    
    ==== thread-4.3 TclThreadSend preserve errorInfo FAILED
    ==== Contents of test case:
    
        threadReap
        set len [llength [testthread names]]
        set serverthread [testthread create]
        set x [catch {testthread send $serverthread {set undef}} msg]
        threadReap
        list $len $x $msg $errorInfo
    
    ---- Result was:
    1 1 {can't read "undef": no such variable} {invalid thread id
        while executing
    "testthread send -async $tid {testthread exit}"}
    ---- Result should have been:
    1 1 {can't read "undef": no such variable} {can't read "undef": no such
    variable
        while executing
    "set undef"
        invoked from within
    "testthread send $serverthread {set undef}"}
    ==== thread-4.3 FAILED
    
    unixInit.test
    
    ==== unixInit-2.1 TclpInitLibraryPath: value of installLib, developLib
    FAILED
    ==== Contents of test case:
    
        set path [getlibpath]
    
        set installLib lib/tcl[info tclversion]
        if {[string match {*[ab]*} [info patchlevel]]} {
            set developLib tcl[info patchlevel]/library
        } else {
            set developLib tcl[info tclversion]/library
        }
        set prefix [file dirname [file dirname $::tcltest::tcltest]]
    
        set x {}
        lappend x [string compare [lindex $path 0] $prefix/$installLib]
        lappend x [string compare [lindex $path 4] [file dirname
    $prefix]/$developLib]
        set x
    
    ---- Result was:
    0 -1
    ---- Result should have been:
    0 0
    ==== unixInit-2.1 FAILED

DesiredBehavior:
all test suite cases pass



The unixInit tests are env specific errors. 
-- 08/31/1999 hobbs
welch Deleted ticket [217901ffff]. [History diff]2000-10-26 08:09:12
Log in (anonymous is fine) to add a comment.