Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit aab2597

Browse files
committedSep 24, 2024·
Speed up tests
1 parent 07c5392 commit aab2597

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎stdlib/REPL/test/repl.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1966,7 +1966,7 @@ end
19661966

19671967
@testset "Dummy Pkg prompt" begin
19681968
# do this in an empty depot to test default for new users
1969-
withenv("JULIA_DEPOT_PATH" => mktempdir(), "JULIA_LOAD_PATH" => nothing) do
1969+
withenv("JULIA_DEPOT_PATH" => join(mktempdir(), Sys.iswindows() ? ";" : ":"), "JULIA_LOAD_PATH" => nothing) do
19701970
prompt = readchomp(`$(Base.julia_cmd()[1]) --startup-file=no -e "using REPL; print(REPL.Pkg_promptf())"`)
19711971
@test prompt == "(@v$(VERSION.major).$(VERSION.minor)) pkg> "
19721972
end
@@ -1975,7 +1975,7 @@ end
19751975
tmp_55850 = mktempdir()
19761976
tmp_sym_link = joinpath(tmp_55850, "sym")
19771977
symlink(tmp_55850, tmp_sym_link; dir_target=true)
1978-
withenv("JULIA_DEPOT_PATH" => tmp_sym_link, "JULIA_LOAD_PATH" => nothing) do
1978+
withenv("JULIA_DEPOT_PATH" => join(tmp_sym_link, Sys.iswindows() ? ";" : ":"), "JULIA_LOAD_PATH" => nothing) do
19791979
prompt = readchomp(`$(Base.julia_cmd()[1]) --startup-file=no -e "using REPL; print(REPL.projname(REPL.find_project_file()))"`)
19801980
@test prompt == "@v$(VERSION.major).$(VERSION.minor)"
19811981
end

0 commit comments

Comments
 (0)
Please sign in to comment.