Skip to content

Commit 8e88820

Browse files
authored
test/spawn: download busybox to a filename ending with .exe on Windows (JuliaLang#58646)
1 parent 866c890 commit 8e88820

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
@@ -25,7 +25,7 @@ busybox_hash_correct(file) = bytes2hex(open(SHA.sha256, file)) == "ed2f95da95552
2525

2626
function _tryonce_download_from_cache(desired_url::AbstractString)
2727
cache_url = "https://cache.julialang.org/$(desired_url)"
28-
cache_output_filename = joinpath(mktempdir(), "busybox")
28+
cache_output_filename = joinpath(mktempdir(), "busybox" * (Sys.iswindows() ? ".exe" : ""))
2929
cache_response = Downloads.request(
3030
cache_url;
3131
output = cache_output_filename,

0 commit comments

Comments
 (0)