Skip to content

Commit

Permalink
add test for JuliaLang#55340
Browse files Browse the repository at this point in the history
  • Loading branch information
fatteneder committed Sep 18, 2024
1 parent 702fde7 commit 5343f73
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/relocatedepot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ if !test_relocated_depot
@test Base.replace_depot_path(path) == "@depot"*dir
end
end

# 55340
empty!(DEPOT_PATH)
mktempdir() do dir
jlrc = joinpath(dir, "julia-rc2")
jl = joinpath(dir, "julia")
mkdir(jl)
push!(DEPOT_PATH, jl)
@test Base.replace_depot_path(jl) == "@depot"
@test Base.replace_depot_path(string(jl,Base.Filesystem.pathsep())) ==
string("@depot",Base.Filesystem.pathsep())
@test Base.replace_depot_path(jlrc) != "@depot-rc2"
@test Base.replace_depot_path(jlrc) == jlrc
end
end

Expand Down

0 comments on commit 5343f73

Please sign in to comment.