You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why does this function exist anyway... The document for the C function explicitly says don' use it and the glibc implementation isn't fundamentally safer than the windows one anyway....
#Julia Version 1.8.0-DEV.1440
#Commit e3b681c687 (2022-02-02 01:39 UTC)
julia> withenv("TMPDIR" => tempdir()) do
mktempdir() do d
t = tempname(d)
@test dirname(t) == d
end
end
Test Passed
Because that is the behaviour of the underlying
tempnam
function. For example, this failsand, in fact, an existing test in
file.jl
fails if the testsuite is run withTMPDIR
set (which is how I discovered the issue).I have tried fixing the issue myself (#35342), but the result ended up thread-unsafe, and I don't have any better ideas.
The text was updated successfully, but these errors were encountered: