Skip to content
Tcl Source Code View Ticket
Login

View Ticket

fileName.test needs writable .

Closed / Fixed575840ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-07-01 06:50:40
See Tcl Bug 575817.

fileName.test fails:

==== filename-4.19 Tcl_SplitPath FAILED
==== Contents of test case:

    set oldDir [pwd]
    set res [catch {
        file mkdir tildetmp
        set nastydir [file join tildetmp ./~tilde]
        file mkdir $nastydir
        set norm [file normalize $nastydir]
        cd tildetmp
        cd ./~tilde
        glob -nocomplain *
        set idx [string first tildetmp $norm]
        set norm [string range $norm $idx end]
        # fix path away so all platforms are the same
        regsub {(.*):$} $norm {\1} norm
        regsub -all ":" $norm "/" norm
        # make sure we can delete the directory we created
        cd $oldDir
        file delete -force $nastydir
        set norm
    } err]
    cd $oldDir
    catch {file delete -force tildetmp}
    list $res $err

---- Result was:
1 {can't create directory "tildetmp": permission denied}
---- Result should have been (exact matching):
0 tildetmp/~tilde
==== filename-4.19 FAILED

Test file error: can't create directory "globTest":
permission denied
    while executing
"file mkdir globTest/a1/b1"
    (file
"/tmp/dist/sandbox/tcl8.4b1/tests/fileName.test" line 1131)
dgpplain2002-07-01 14:05:04
Logged In: YES 
user_id=80530


unixFile.test also:

==== unixFile-1.1 Tcl_FindExecutable FAILED
==== Contents of test case:

    set env(PATH) ""
    testfindexecutable junk

---- Result was:

---- Result should have been (exact matching):
/tmp/dist/sandbox/tcl8.4b1/unix/junk
==== unixFile-1.1 FAILED


==== unixFile-1.3 Tcl_FindExecutable FAILED
==== Contents of test case:

    set env(PATH) "/dummy:[pwd]"
    testfindexecutable junk

---- Result was:

---- Result should have been (exact matching):
/tmp/dist/sandbox/tcl8.4b1/unix/junk
==== unixFile-1.3 FAILED


==== unixFile-1.4 Tcl_FindExecutable FAILED
==== Contents of test case:

    set env(PATH) "/dummy:"
    testfindexecutable junk

---- Result was:

---- Result should have been (exact matching):
/tmp/dist/sandbox/tcl8.4b1/unix/junk
==== unixFile-1.4 FAILED


==== unixFile-1.6 Tcl_FindExecutable FAILED
==== Contents of test case:

    set env(PATH) "/dummy::/dummy"
    testfindexecutable junk

---- Result was:

---- Result should have been (exact matching):
/tmp/dist/sandbox/tcl8.4b1/unix/junk
==== unixFile-1.6 FAILED


==== unixFile-1.7 Tcl_FindExecutable FAILED
==== Contents of test case:

    set env(PATH) ":/dummy"
    testfindexecutable junk

---- Result was:

---- Result should have been (exact matching):
/tmp/dist/sandbox/tcl8.4b1/unix/junk
==== unixFile-1.7 FAILED
dkf Closed ticket [575840ffff]. [History diff]2002-07-05 17:44:04
Log in (anonymous is fine) to add a comment.