Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-07-04
22:51 • Closed ticket [575862ffff]: io.test needs writable . plus 7 other changes artifact: 50ad7962a2 user: andreas_kupries
08:35 • Ticket [575862ffff]: 5 changes artifact: 1f63703316 user: dgp
04:14 • Ticket [575862ffff]: 4 changes artifact: c9126f8fc7 user: andreas_kupries
04:14 • Add attachment 575862.diff to ticket [575862ffff] artifact: 23e6baa6bf user: andreas_kupries
04:14 • Ticket [575862ffff] io.test needs writable . status still Open with 5 other ... artifact: 31f2388b1b user: andreas_kupries
03:26 • Ticket [575862ffff]: 5 changes artifact: 45f18e6b43 user: andreas_kupries
02:21 • Ticket [575862ffff]: 4 changes artifact: 36d9a78815 user: dgp
01:51 • Add attachment 575862.diff to ticket [575862ffff] artifact: 1daf8758cd user: andreas_kupries
01:51 • Ticket [575862ffff] io.test needs writable . status still Open with 5 other ... artifact: 12bbc2e375 user: andreas_kupries
2002-07-01
07:35 • New ticket [575862ffff]. artifact: 7a13feb841 user: dgp

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: