Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b2fcd9b60a20a345a47c2e4b18431a5bf5450e85
Ticket: 1193497fffffffffffffffffffffffffffffffff
file writable lies for certain XP directories
User & Date: fvogelnew1 on 2006-03-17 06:06:27
Changes

  1. icomment:
    Logged In: YES 
    user_id=1245417
    
    So here is what I have found now:
    
    % source fCmd.test
    
    ==== fCmd-9.4 file rename: comprehensive: dir to new name 
    FAILED
    ==== Contents of test case:
    
        cleanup
        file mkdir td1 td2
        testchmod 555 td2
        file rename td1 td3
        file rename td2 td4
        list [lsort [glob td*]] [file writable td3] [file 
    writable td4]
    
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ---- errorInfo: td2: no such file or directory
        while executing
    "testchmod 555 td2"
        ("uplevel" body line 4)
        invoked from within
    "uplevel 1 $script"
    ---- errorCode: POSIX ENOENT {no such file or directory}
    ==== fCmd-9.4 FAILED
    
    REASON: Problems seems to be in testchmod:
    
    % file mkdir td1 td2
    % testchmod 555 td2
    td2: no such file or directory
    % file exists td2
    1
    
    Problem is apparently that testchmod cannot find td2 that 
    was just created??
    
    
    ==== fCmd-9.6 file rename: comprehensive: dir to self 
    FAILED
    
    ==== fCmd-9.9 file rename: comprehensive: dir to non-empty 
    dir FAILED
    
    ==== fCmd-9.11 file rename: comprehensive: dir to new name 
    and dir FAILED
    
    ==== fCmd-10.3.1 file copy: comprehensive: dir to new name 
    FAILED
    
    ==== fCmd-10.5 file copy: comprehensive: dir to empty dir 
    FAILED
    
    ==== fCmd-10.6 file copy: comprehensive: dir to non-empty 
    dir FAILED
    
    ==== fCmd-10.8.1 file rename: comprehensive: dir to new 
    name and dir FAILED
    
    
    All the 8 failing tests in fCmd.test are failing because 
    of testchmod that can't find the directory that was just 
    created before.
    
    
    ---------------------
    
    Now:
    % source tcltest.test
    
    ==== tcltest-5.5 InitConstraints: list of built-in 
    constraints FAILED
    ==== Contents of test case:
     lsort [array names ::tcltest::testConstraints]
    ---- Result was:
    2000orNewer 95 95or98 98 asyncPipeClose dontCopyLinks 
    eformat emptyTest exec fil
    eSharing foundGroup hasIsoLocale interactive knownBug 
    linkDirectory linkFile mac
     macCrash macOnly macOrPc macOrUnix macOrWin nonBlockFiles 
    nonPortable notFileSh
    aring notNetworkFilesystem notRoot nt pc pcCrash pcOnly 
    root singleTestInterp so
    cket stdio tempNotMac tempNotPc tempNotUnix tempNotWin 
    testchmod testsetplatform
     testvolumetype unix unixCrash unixExecs unixOnly unixOrPc 
    unixOrWin userInterac
    tion win winCrash winOnly xdev
    ---- Result should have been (exact matching):
    95 98 asyncPipeClose eformat emptyTest exec hasIsoLocale 
    interactive knownBug ma
    c macCrash macOnly macOrPc macOrUnix macOrWin 
    nonBlockFiles nonPortable notRoot
    nt pc pcCrash pcOnly root singleTestInterp socket stdio 
    tempNotMac tempNotPc tem
    pNotUnix tempNotWin unix unixCrash unixExecs unixOnly 
    unixOrPc unixOrWin userInt
    eraction win winCrash winOnly
    ==== tcltest-5.5 FAILED
    
    REASON: Vince perhaps forgot to update the constraints 
    list?
    
    
    ==== tcltest-8.4 tcltest a.tcl -tmpdir notWriteableDir 
    FAILED
    ==== Contents of test case:
    
        slave msg $a -tmpdir $notWriteableDir
        string match {*not writeable*} $msg
    
    ---- Result was:
    0
    ---- Result should have been (exact matching):
    1
    ==== tcltest-8.4 FAILED
    
    REASON: hmmm... don't know...
    
    
    About tests from winFcmd.test, again there is for all 7 
    failing tests a testchmod 000 xxx that does not find the 
    directory it is supposed to find.
    
    Therefore I'm in agreement with Jason:
    
    >1. Windows does not preserve ACL on copy it instead 
    >inherits
    >the permissions from the parent.
    >2. Testcase does a chmod 000 and expects the directory to 
    >be
    >writable.  I think the test should really be creating
    >another sub directory under the first one before chmod 000
    >and then try to write to it.  The testcases appear to be
    >checking that a non readable directory can be traversed
    >through.
    
    Shouldn't the tests be updated for Windows?
    
    
    >3. Using file attribute -readonly to make a directory
    >readonly.  The test does not appear to be valid for 
    windows . 
    
    To which test are you referring to here?
    
    Francois
    
    
    
  2. login: "fvogelnew1"
  3. mimetype: "text/plain"
  4. username: "fvogelnew1"