Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 787ee59867fbbc98119cac9fcfa25de6575ea21c
Ticket: 883143ffffffffffffffffffffffffffffffffff
fCmd-28.12: broken test
User & Date: dgp on 2004-01-23 17:34:19
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    ==== 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
    
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ---- errorInfo: can't read "link": no such variable
        while executing
    "set res "wrong directory with 'cd $link ; cd ..'""
        invoked from within
    "if {([file normalize $up] != [file normalize $orig]) 
    && ([file normalize $up] != [file normalize [file
    dirname abc.dir]])} {
            set res "wrong director..."
        ("uplevel" body line 15)
        invoked from within
    "uplevel 1 $script"
    ---- errorCode: NONE
    ==== fCmd-28.12 FAILED
    
    Note the test tries to read the value
    of a variable "$link" that does not
    exist.
    
    
  4. foundin changed to: "obsolete: 8.5a0"
  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: "37. File System"
  10. title changed to: "fCmd-28.12: broken test"
  11. type changed to: "Bug"