Skip to content

Commit

Permalink
test.path: use Sys.detectwsl
Browse files Browse the repository at this point in the history
  • Loading branch information
inkydragon committed Jan 16, 2025
1 parent 8cb29ab commit b324514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/path.jl
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
@testset "uripath" begin
host = if Sys.iswindows()
""
elseif ispath("/proc/sys/fs/binfmt_misc/WSLInterop")
elseif Sys.detectwsl()
distro = get(ENV, "WSL_DISTRO_NAME", "") # See <https://patrickwu.space/wslconf/>
"wsl%24/$distro" # See <https://github.com/microsoft/terminal/pull/14993> and <https://learn.microsoft.com/en-us/windows/wsl/filesystems>
else
Expand Down

0 comments on commit b324514

Please sign in to comment.