Skip to content

Commit

Permalink
rename rot13 app in test to avoid name conflicts on systems where suc…
Browse files Browse the repository at this point in the history
…h a binary is already installed (#4143)

Co-authored-by: KristofferC <[email protected]>
  • Loading branch information
KristofferC and KristofferC authored Jan 28, 2025
1 parent a3626bf commit ecdf6aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/apps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ isolate(loaded_depot=true) do
sep = Sys.iswindows() ? ';' : ':'
Pkg.Apps.develop(path=joinpath(@__DIR__, "test_packages", "Rot13.jl"))
current_path = ENV["PATH"]
exename = Sys.iswindows() ? "rot13.bat" : "rot13"
exename = Sys.iswindows() ? "juliarot13.bat" : "juliarot13"
withenv("PATH" => string(joinpath(first(DEPOT_PATH), "bin"), sep, current_path)) do
@test contains(Sys.which("$exename"), first(DEPOT_PATH))
@test read(`$exename test`, String) == "grfg\n"
Expand All @@ -25,7 +25,7 @@ isolate(loaded_depot=true) do
sep = Sys.iswindows() ? ';' : ':'
path = git_init_package(tmpdir, joinpath(@__DIR__, "test_packages", "Rot13.jl"))
Pkg.Apps.add(path=path)
exename = Sys.iswindows() ? "rot13.bat" : "rot13"
exename = Sys.iswindows() ? "juliarot13.bat" : "juliarot13"
current_path = ENV["PATH"]
withenv("PATH" => string(joinpath(first(DEPOT_PATH), "bin"), sep, current_path)) do
@test contains(Sys.which(exename), first(DEPOT_PATH))
Expand Down
2 changes: 1 addition & 1 deletion test/test_packages/Rot13.jl/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ uuid = "43ef800a-eac4-47f4-949b-25107b932e8f"
version = "0.1.0"

[apps]
rot13 = {}
juliarot13 = {}

0 comments on commit ecdf6aa

Please sign in to comment.