Overview
| Artifact ID: | f4850fdf58b3a1d06c55fcd9da92776f5b2ecac5 |
|---|---|
| Ticket: | 558742ffffffffffffffffffffffffffffffffff
tcltest creates 'tmp' in current dir |
| User & Date: | vincentdarley on 2002-05-21 15:56:48 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
The tcltest package tries to create a file 'tmp' in the pwd. This is particularly problematic when 'pwd' is inside a vfs (which can easily happen since tcltest is actually a part of default tclkit executables). Furthermore, under some circumstances, even if the 'tmp' file is created, it is not cleaned up. The problematic code is around line 1179 of tcltest.tcl: testConstraint stdio 0 catch { catch {file delete -force tmp} set f [open tmp w] puts $f { exit } close $f set f [open "|[list [interpreter] tmp]" r] close $f testConstraint stdio 1 } catch {file delete -force tmp} Problems observed are: (i) assumption that 'tmp' is in the native filesystem and therefore that 'open |' will work. (ii) assumption that 'puts $f ...' will not fail -- if it does, then '$f' is never closed. It would be best if 'tmp' was put in $env(TEMP), ... - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "vincentdarley"
- subsystem changed to: "34. tcltest Package"
- title changed to: "tcltest creates 'tmp' in current dir"
- type changed to: "Bug"