diff --git a/stdlib/REPL/test/repl.jl b/stdlib/REPL/test/repl.jl index b9d0ffff5dc02a..0ca9382fe0a15d 100644 --- a/stdlib/REPL/test/repl.jl +++ b/stdlib/REPL/test/repl.jl @@ -1966,7 +1966,7 @@ end @testset "Dummy Pkg prompt" begin # do this in an empty depot to test default for new users - withenv("JULIA_DEPOT_PATH" => mktempdir(), "JULIA_LOAD_PATH" => nothing) do + withenv("JULIA_DEPOT_PATH" => join(mktempdir(), Sys.iswindows() ? ";" : ":"), "JULIA_LOAD_PATH" => nothing) do prompt = readchomp(`$(Base.julia_cmd()[1]) --startup-file=no -e "using REPL; print(REPL.Pkg_promptf())"`) @test prompt == "(@v$(VERSION.major).$(VERSION.minor)) pkg> " end @@ -1975,7 +1975,7 @@ end 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 + withenv("JULIA_DEPOT_PATH" => join(tmp_sym_link, Sys.iswindows() ? ";" : ":"), "JULIA_LOAD_PATH" => nothing) do prompt = readchomp(`$(Base.julia_cmd()[1]) --startup-file=no -e "using REPL; print(REPL.projname(REPL.find_project_file()))"`) @test prompt == "@v$(VERSION.major).$(VERSION.minor)" end