Skip to content

Commit 11fabf1

Browse files
authored
Fix Sys.which test when running a debug build of Julia (#42050)
The debug Julia executable is called `julia-debug`, so the test for `Sys.which("julia")` being the path to the current executable fails.
1 parent 897c8e6 commit 11fabf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/spawn.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ end
650650
psep = if Sys.iswindows() ";" else ":" end
651651
withenv("PATH" => "$(Sys.BINDIR)$(psep)$(ENV["PATH"])") do
652652
julia_exe = joinpath(Sys.BINDIR, Base.julia_exename())
653-
@test Sys.which("julia") == abspath(julia_exe)
653+
@test Sys.which(Base.julia_exename()) == abspath(julia_exe)
654654
@test Sys.which(julia_exe) == abspath(julia_exe)
655655
end
656656

0 commit comments

Comments
 (0)