[file tempfile] not portable
Closed / Fixed2371623fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-12-01 15:06:42
Failing test is really on the
tip of the core-8-5-branch:
==== cmdAH-32.6 file tempfile - templates FAILED
==== Contents of test case:
set template [file join $dirfile foo]
close [file tempfile name $template.bar]
expr {[string match $template*.bar $name] ? "ok" :
"$template.bar produced $name"}
---- Result was:
/home/dgp/cvs/tcl/unix/dir.file/foo.bar produced /home/dgp/cvs/tcl/unix/dir.file/foo_rhh7Cg
---- Result should have been (exact matching):
ok
==== cmdAH-32.6 FAILED
dgpplain2008-12-01 22:09:08
sorry. those weren't the droids I thought I was testing.
dkfplain2008-12-01 22:17:43
Oh well, you must be on a system without mkstemps(). Guess that test needs to be marked nonPortable...
dkf Closed ticket [2371623fff].
[History diff]2008-12-01 22:23:06
dgpplain2008-12-02 00:00:03
ok, so that fixes the "failed test" problem, but doesn't fix the "[file tempfile] doesn't work on my system" problem?
dgp Open ticket [2371623fff].
[History diff]2008-12-02 00:00:04
dgpplain2008-12-02 03:44:36
ok, the unreliability of the template on multiple platforms is documented, so no bug it seems.
Log in (anonymous is fine) to add a comment.