Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5be8c9160ecf70eb9dc087e016fcc6964bcd5249
Ticket: 585178ffffffffffffffffffffffffffffffffff
test failures for cross-compiled HEAD
User & Date: pointsman on 2002-07-22 23:59:50
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I've cross-compiled tcl HEAD as of 22.07.02 (that's
    post tcl8.b1) with  mingw32 cross-compiler based on
    gcc-2.95.3 and version 1.3 of the mingw-runtime and
    w32api as described at http://mini.net/tcl/3102.
    Running the test suite the following tests failed for
    this cross-compiled tclsh, but not for a tclsh compiled
    from the same sources with VC++ 6.0 on the test
    maschine, a w2k:
    
    
    cmdAH-29.4.1
    fCmd-28.11
    fCmd-28.12
    fCmd-28.13
    fCmd-28.15
    fCmd-28.16
    fCmd-28.17
    fCmd-28.18
    filename-11.17.2
    filename-11.17.3
    filename-11.17.4
    
    All this failed tests seems to have to do with [file
    link ...]. I append the detailed test run output for
    this tests. 
    
    rolf
    
    ==== cmdAH-29.4.1 Tcl_FileObjCmd: type FAILED
    ==== Contents of test case:
    
        set tempdir [makeDirectory temp]
        set linkdir [file join [temporaryDirectory] link.dir]
        file link -symbolic $linkdir $tempdir
        set result [file type $linkdir]
        file delete $linkdir
        removeDirectory $tempdir
        set result
    
    ---- Result was:
    could not create new link
    "C:/local/devel/mwing-tcl/tclHEAD-mingwbin/link.dir"
    pointing to
    "C:/local/devel/mwing-tcl/tclHEAD-mingwbin/temp":
    invalid argument
    ---- Result should have been (exact matching):
    link
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ==== cmdAH-29.4.1 FAILED
    
    
    ==== fCmd-28.11 file link: success with directory FAILED
    ==== Contents of test case:
    
        cd [temporaryDirectory]
        file delete -force abc.link
        set res [list [catch {file link abc.link abc.dir}
    msg] $msg]
        cd [workingDirectory]
        set res
    
    ---- Result was:
    1 {could not create new link "abc.link" pointing to
    "abc.dir": invalid argument}
    ---- Result should have been (exact matching):
    0 abc.dir
    ==== fCmd-28.11 FAILED
    
    
    ==== fCmd-28.12 file link: cd into a link FAILED
    ==== Contents of test case:
    
        cd [temporaryDirectory]
        file delete -force abc.link
        file link abc.link abc.dir
        set orig [pwd]
        cd abc.link
        set dir [pwd]
        cd ..
        set up [pwd]
        cd $orig
        # now '$up' should be either $orig or [file dirname
    abc.dir],
        # depending on whether 'cd' actually moves to the
    destination
        # of a link, or simply treats the link as a directory.
        # (on windows the former, on unix the latter, I
    believe)
        if {([file normalize $up] != [file normalize
    $orig])  && ([file normalize $up] != [file normalize
    [file dirname abc.dir]])} {
    set res "wrong directory with 'cd $link ; cd ..'"
        } else {
    set res "ok"
        }
        cd [workingDirectory]
        set res
    
    ---- Result was:
    could not create new link "abc.link" pointing to
    "abc.dir": invalid argument
    ---- Result should have been (exact matching):
    ok
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ==== fCmd-28.12 FAILED
    
    
    ==== fCmd-28.13 file link FAILED
    ==== Contents of test case:
    
        # duplicate link throws error
        cd [temporaryDirectory]
        set res [list [catch {file link abc.link abc.dir}
    msg] $msg]
        cd [workingDirectory]
        set res
    
    ---- Result was:
    1 {could not create new link "abc.link" pointing to
    "abc.dir": invalid argument}
    ---- Result should have been (exact matching):
    1 {could not create new link "abc.link": that path
    already exists}
    ==== fCmd-28.13 FAILED
    
    
    ==== fCmd-28.15 file link: copies link not dir FAILED
    ==== Contents of test case:
    
        cd [temporaryDirectory]
        file delete -force abc.link
        file link abc.link abc.dir
        file copy abc.link abc2.link
        set res [list [file type abc2.link] [file tail
    [file link abc2.link]]]
        cd [workingDirectory]
        set res
    
    ---- Result was:
    could not create new link "abc.link" pointing to
    "abc.dir": invalid argument
    ---- Result should have been (exact matching):
    link abc.dir
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ==== fCmd-28.15 FAILED
    
    
    ==== fCmd-28.16 file link: glob inside link FAILED
    ==== Contents of test case:
    
        cd [temporaryDirectory]
        file delete -force abc.link
        file link abc.link abc.dir
        set res [glob -dir abc.link -tails *]
        cd [workingDirectory]
        set res
    
    ---- Result was:
    could not create new link "abc.link" pointing to
    "abc.dir": invalid argument
    ---- Result should have been (exact matching):
    abc.file abc2.file
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ==== fCmd-28.16 FAILED
    
    
    ==== fCmd-28.17 file link: glob -type l FAILED
    ==== Contents of test case:
    
        cd [temporaryDirectory]
        set res [glob -dir [pwd] -type l -tails abc*]
        cd [workingDirectory]
        set res
    
    ---- Result was:
    no files matched glob pattern "abc*"
    ---- Result should have been (exact matching):
    abc.link
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ==== fCmd-28.17 FAILED
    
    
    ==== fCmd-28.18 file link: glob -type d FAILED
    ==== Contents of test case:
    
        cd [temporaryDirectory]
        set res [lsort [glob -dir [pwd] -type d -tails abc*]]
        cd [workingDirectory]
        set res
    
    ---- Result was:
    abc.dir abc2.dir
    ---- Result should have been (exact matching):
    abc.dir abc.link abc2.dir
    ==== fCmd-28.18 FAILED
    
    
    
    ==== filename-11.17.2 Tcl_GlobCmd FAILED
    ==== Contents of test case:
    
        set dir [pwd]
        set ret "error in test"
        if {[catch {
    cd $globname
    file link -symbolic link a1
    cd $dir
    set ret [list [catch {
        lsort [glob -directory $globname -join * b1]
    } msg] $msg]
        }]} {
    cd $dir
        }
        file delete [file join $globname link]
        set ret
    
    ---- Result was:
    error in test
    ---- Result should have been (exact matching):
    0 {globTest/a1/b1 globTest/link/b1}
    ==== filename-11.17.2 FAILED
    
    
    ==== filename-11.17.3 Tcl_GlobCmd FAILED
    ==== Contents of test case:
    
        set dir [pwd]
        set ret "error in test"
        if {[catch {
    cd $globname
    file link -symbolic link a1
    cd $dir
    set ret [list [catch {
        lsort [glob -directory $globname -type d *]
    } msg] $msg]
        }]} {
    cd $dir
        }
        file delete [file join $globname link]
        set ret
    
    ---- Result was:
    error in test
    ---- Result should have been (exact matching):
    0 {globTest/a1 globTest/a2 globTest/a3 globTest/link}
    ==== filename-11.17.3 FAILED
    
    
    ==== filename-11.17.4 Tcl_GlobCmd FAILED
    ==== Contents of test case:
    
        set dir [pwd]
        set ret "error in test"
        if {[catch {
    cd $globname
    file link -symbolic link a1
    cd $dir
    set ret [list [catch {
        lsort [glob -directory $globname -type l *]
    } msg] $msg]
        }]} {
    cd $dir
        }
        file delete [file join $globname link]
        set ret
    
    ---- Result was:
    error in test
    ---- Result should have been (exact matching):
    0 globTest/link
    ==== filename-11.17.4 FAILED
    
    
  4. foundin changed to: "obsolete: 8.4b2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "pointsman"
  9. subsystem changed to: "37. File System"
  10. title changed to: "test failures for cross-compiled HEAD"
  11. type changed to: "Bug"