Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d1087721e4f8ccff745de395cd8f4a820c1bc1e4
Ticket: 566669ffffffffffffffffffffffffffffffffff
[fix] file dirname ~
User & Date: taguchiv6 on 2002-06-27 12:45:02
Changes

  1. icomment:
    Logged In: YES 
    user_id=357728
    
    I've got following outputs from "make test"
    
    ==== cmdAH-8.44 Tcl_FileObjCmd: dirname FAILED
    ==== Contents of test case:
    
        global env
        set temp $env(HOME)
        set env(HOME) "~"
        testsetplatform unix
        set result [list [catch {file dirname ~} msg] $msg]
        set env(HOME) $temp
        set result
    
    ---- Result was:
    0 /usr/local/src/tcl
    ---- Result should have been (exact matching):
    0 ~
    ==== cmdAH-8.44 FAILED
    ==== cmdAH-8.46 Tcl_FileObjCmd: dirname FAILED
    ==== Contents of test case:
    
        global env
        set temp $env(HOME)
        set env(HOME) "/home/test"
        testsetplatform mac
        set result [list [catch {file dirname ~} msg] $msg]
        set env(HOME) $temp
        set result
    
    ---- Result was:
    0 usr:local:src:tcl:unixhome
    ---- Result should have been (exact matching):
    0 home:
    ==== cmdAH-8.46 FAILED
    
    
    ==== cmdAH-9.43 Tcl_FileObjCmd: tail FAILED
    ==== Contents of test case:
    
        global env
        set temp $env(HOME)
        set env(HOME) "~"
        testsetplatform unix
        set result [file tail ~]
        set env(HOME) $temp
        set result
    
    ---- Result was:
    unix~
    ---- Result should have been (exact matching):
    
    ==== cmdAH-9.43 FAILED
    
    ... [snip] ...
    ==== filename-11.13 Tcl_GlobCmd FAILED
    ==== Contents of test case:
    
        list [catch {file join [lindex [glob ~] 0]} msg] $msg
    
    ---- Result was:
    1 {no files matched glob pattern "~"}
    ---- Result should have been (exact matching):
    0 /root
    ==== filename-11.13 FAILED
    
    
    ==== filename-11.45 Tcl_GlobCmd on root volume FAILED
    ==== Contents of test case:
    
        set res1 ""
        set res2 ""
        catch {
            set res1 [glob -dir [lindex [file volumes] 0] -tails
    *]
        }
        catch {
            set tmpd [pwd]
            cd [lindex [file volumes] 0]
            set res2 [glob *]
            cd $tmpd
        }
        expr {$res1 == $res2}
    
    ---- Result was:
    0
    ---- Result should have been (exact matching):
    1
    ==== filename-11.45 FAILED
    ==== filesystem-5.1 cache and ~ FAILED
    ==== Contents of test case:
    set orig $env(HOME)
            set ::env(HOME) /foo/bar/blah
            set testdir ~
            set res1 "Parent of ~ (/foo/bar/blah) is [file
    dirname $testdir]"
            set ::env(HOME) /a/b/c
            set res2 "Parent of ~ (/a/b/c) is [file dirname
    $testdir]"
            set ::env(HOME) $orig
            list $res1 $res2
    ---- Result was:
    {Parent of ~ (/foo/bar/blah) is
    /usr/local/src/tcl/unix/foo/bar} {Parent of ~ (/
    a/b/c) is /usr/local/src/tcl/unix/a/b}
    ---- Result should have been (regexp matching):
    {Parent of ~ \(/foo/bar/blah\) is (/foo/bar|foo:bar)}
    {Parent of ~ \(/a/b/c\) is
     (/a/b|a:b)}
    ==== filesystem-5.1 FAILED
    
    
    
    
  2. login: "taguchiv6"
  3. mimetype: "text/plain"
  4. status changed to: "Open"
  5. username: "taguchiv6"