Tcl Source Code

View Ticket
Login
Ticket UUID: 575862
Title: io.test needs writable .
Type: Bug Version: obsolete: 8.4a5
Submitter: dgp Created on: 2002-07-01 07:35:09
Subsystem: 25. Channel System Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2002-07-04 22:51:21
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2002-07-04 15:51:21
Description:
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)
User Comments: andreas_kupries added on 2002-07-04 22:51:21:
Logged In: YES 
user_id=75003

Patch committed to head.

dgp added on 2002-07-04 08:35:20:
Logged In: YES 
user_id=80530

updated patch works.

andreas_kupries added on 2002-07-04 04:14:08:

File Added - 26354: 575862.diff

andreas_kupries added on 2002-07-04 04:14:07:
Logged In: YES 
user_id=75003

Updated patch.

andreas_kupries added on 2002-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.

dgp added on 2002-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_kupries added on 2002-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).

Attachments: