Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2003-02-06
23:35 • Closed ticket [676978ffff]: -errfile and -outfile left open plus 7 other cha... artifact: 237defc637 user: dgp
23:20 • Add attachment 676978.patch to ticket [676978ffff] artifact: 324c7e1a62 user: dgp
23:20 • Ticket [676978ffff] -errfile and -outfile left open status still Open with 4... artifact: 85d437d125 user: dgp
2003-02-01
03:56 • Ticket [676978ffff]: 5 changes artifact: 9dcdec2798 user: kennykb
01:30 • Ticket [676978ffff]: 5 changes artifact: d8f83b8f96 user: dgp
2003-01-29
19:36 • New ticket [676978ffff]. artifact: 949da95ff6 user: dgp

-errfile and -outfile left open

Closed / Fixed676978ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2003-01-29 19:36:45
The [errorChannel] and [outputChannel] commands
[open] files, but never [close] them.  This can cause
[cleanupTests] to be unable to clean up files that
are still held open.
dgpplain2003-02-01 01:30:45
File Added - 41179: 676978.patch

Logged In: YES 
user_id=80530

really two separate bugs here.

First files are [open]'d but not [close]d.

Second, the files opened to be used as
-outfile or -errfile really should be treated
differently from files that just happen to
be created as side effects of tests.  In
particular, it's unlikely that you want
[cleanupTests] to remove the files that
hold all output or error log information from
running the test suite.

Here's a patch that attempts to improve
things a bit.  I doubt it's completely right,
because the interfaces here are just so
badly designed it may be near impossible
to make them work sensibly.

Please give this a try.
kennykbplain2003-02-01 03:56:34
Logged In: YES 
user_id=99768

No errors observed on Win2k with the patch applied.  No complaints about an 'ofile' or 'efile' left around.
dgpplain2003-02-06 23:20:05
File Deleted - 41179: 



File Added - 41678: 676978.patch

Logged In: YES 
user_id=80530

Here's an improved patch that should
be more robust.
dgpplain2003-02-06 23:35:30
Logged In: YES 
user_id=80530

committed.  Now at version 2.2.2
Log in (anonymous is fine) to add a comment.

Attachments: