Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-06-25
21:16 • Closed ticket [219342ffff]: Inconsistent tlctest state with respect to temp dire... artifact: 2b68a73c15 user: dgp
2002-06-06
22:30 • Ticket [219342ffff]: 4 changes artifact: 566f050db0 user: dgp
2002-03-25
02:54 • Ticket [219342ffff]: 5 changes artifact: b09c095eb1 user: dgp
2002-03-23
06:06 • Ticket [219342ffff]: 1 change artifact: 030954e143 user: hobbs
2001-09-20
17:52 • Ticket [219342ffff]: 1 change artifact: af9ca5307a user: dkf
2000-10-26
05:11 • New ticket [219342ffff]. artifact: ad06b50bc3 user: nobody

Inconsistent tlctest state with respect to temp directories

Closed / Works For Me219342ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 24 years ago
Descriptionplain2000-10-26 05:11:00
OriginalBugID: 5379 Bug
Version: 8.3
SubmitDate: '2000-05-05'
LastModified: '2000-05-05'
Severity: LOW
Status: UnAssn
Submitter: awb
ChangedBy: awb
OS: All
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'


In the case where multiple tests are run from an all.tcl, 
calling "tcltest::cleanupTests 0" from an individual test file will
result in any temporary directories being deleted, but 
"tcltest::filesMade" still indicates that the directories exist.

For example, if test "A" create a temporary directory called "a", 
and test "B" tries also to create a temporary directory called "a", 
the creation will fail in test "B" because tcltest assumes that the file
already exists. 

Work around is to have each test file prepend its name to any directories
it creates.
dkf Ticket [219342ffff]: 1 change [History diff]2001-09-20 17:52:02
hobbs Ticket [219342ffff]: 1 change [History diff]2002-03-23 06:06:31
dgpplain2002-03-25 02:54:52
Logged In: YES 
user_id=80530

Well, I'll agree that this feature of tcltest is a mess,
but I don't see how it can fail in the manner described in
this report.  The commands [makeFile] and [makeDirectory]
*always* create the file or directory, and then add their
full pathname to the filesMade list.  They do not refuse to
create files already on the filesMade list.

There do appear to be problems with management of the
filesMade variable, but none would prevent the creation of
temporary directories.  In particular, it's not cleared
by removeFile or removeDirectory.

It's possible this report is just out of date.

I will take this report as an excuse to clean up the
problems with the filesMade variable, but at a lower 
priority.  If the submitter can clarify anything, please
followup.
dgpplain2002-06-06 22:30:09
Logged In: YES 
user_id=80530

I note that the filesExist variable is initialized
at package load time of tcltest, which is probably
not right.
dgpplain2002-06-25 21:16:12
Logged In: YES 
user_id=80530


the filesExist variable initialization has been cleaned up.
Please test tcltest 2.1 to see if it corrects this problem.
If not, please submit an actual test example demonstrating
the bug.

Setting Status to pending.  This report will close unless
more info is provided.
Log in (anonymous is fine) to add a comment.