]>
git.saurik.com Git - redis.git/blob - tests/support/tmpfile.tcl
2 set ::tmproot "./tests/tmp"
5 # returns a dirname unique to this process to write to
6 proc tmpdir
{basename
} {
8 # For diskstore we want to use the same dir again and again
9 # otherwise everything is too slow.
10 set dir
[file join $::tmproot $basename.diskstore
]
12 set dir
[file join $::tmproot $basename.
[pid].
[incr ::tmpcounter]]
18 # return a filename unique to this process to write to
19 proc tmpfile
{basename
} {
20 file join $::tmproot $basename.
[pid].
[incr ::tmpcounter]