Skip to content
Tcl Source Code View Ticket
Login

View Ticket

io.test needs writable .

Closed / Fixed575862ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-07-01 07:35:09
See Tcl Bug 575817.

io.test fails:

io.test
Test file error: couldn't open "longfile": permission
denied
    while executing
"open longfile w"
    (in namespace eval "::tcl::test::io" script line 22)
    invoked from within
"namespace eval ::tcl::test::io {

    namespace import ::tcltest::cleanupTests
    namespace import ::tcltest::interpreter
    namespace import ::tclt..."
    (file "/tmp/dist/sandbox/tcl8.4b1/tests/io.test"
line 21)
andreas_kupriesplain2002-07-04 01:51:53
File Added - 26347: 575862.diff

Logged In: YES 
user_id=75003

Attached a patch which should fix the problems.
Back to Don to test the patch in his configuration.
(For me it does work).
dgpplain2002-07-04 02:21:54
Logged In: YES 
user_id=80530


No, after this patch I see many, many errors.

First one is "couldn't open "test1": permission denied"
from io-1.6.  That test tries to open a file "test1"
for writing in [pwd], which is not writable.

A cheap fix might be to [cd [temporaryDirectory]],
then [cd [workingDirectory]] when tests that want
to write files in [pwd] are completed.
andreas_kupriesplain2002-07-04 03:26:30
Logged In: YES 
user_id=75003

Found the reason why it worked for me: Left-over files from 
when the directory was writable. Going back to me for 
another round of testing and changing.
andreas_kupriesplain2002-07-04 04:14:07
Logged In: YES 
user_id=75003

Updated patch.
andreas_kupriesplain2002-07-04 04:14:08
File Added - 26354: 575862.diff
dgpplain2002-07-04 08:35:20
Logged In: YES 
user_id=80530

updated patch works.
andreas_kupriesplain2002-07-04 22:51:21
Logged In: YES 
user_id=75003

Patch committed to head.
Log in (anonymous is fine) to add a comment.

Attachments: