Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
christiangnrd committed Sep 24, 2024
1 parent 2869923 commit c347fd7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/repl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -733,4 +733,14 @@ end
end
end

@testset "JuliaLang/julia #55850" begin
tmp_55850 = mktempdir()
tmp_sym_link = joinpath(tmp_55850, "sym")
symlink(tmp_55850, tmp_sym_link; dir_target=true)
withenv("JULIA_DEPOT_PATH" => tmp_sym_link, "JULIA_LOAD_PATH" => nothing) do
prompt = readchomp(`$(Base.julia_cmd()[1]) --startup-file=no -e "using Pkg: REPLMode, Types; print(REPLMode.projname(Types.find_project_file()))"`)
@test prompt == "@v$(VERSION.major).$(VERSION.minor)"
end
end

end # module

0 comments on commit c347fd7

Please sign in to comment.