Skip to content

Commit ecdf6aa

Browse files
KristofferCKristofferC
andauthored
rename rot13 app in test to avoid name conflicts on systems where such a binary is already installed (#4143)
Co-authored-by: KristofferC <[email protected]>
1 parent a3626bf commit ecdf6aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/apps.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ isolate(loaded_depot=true) do
1111
sep = Sys.iswindows() ? ';' : ':'
1212
Pkg.Apps.develop(path=joinpath(@__DIR__, "test_packages", "Rot13.jl"))
1313
current_path = ENV["PATH"]
14-
exename = Sys.iswindows() ? "rot13.bat" : "rot13"
14+
exename = Sys.iswindows() ? "juliarot13.bat" : "juliarot13"
1515
withenv("PATH" => string(joinpath(first(DEPOT_PATH), "bin"), sep, current_path)) do
1616
@test contains(Sys.which("$exename"), first(DEPOT_PATH))
1717
@test read(`$exename test`, String) == "grfg\n"
@@ -25,7 +25,7 @@ isolate(loaded_depot=true) do
2525
sep = Sys.iswindows() ? ';' : ':'
2626
path = git_init_package(tmpdir, joinpath(@__DIR__, "test_packages", "Rot13.jl"))
2727
Pkg.Apps.add(path=path)
28-
exename = Sys.iswindows() ? "rot13.bat" : "rot13"
28+
exename = Sys.iswindows() ? "juliarot13.bat" : "juliarot13"
2929
current_path = ENV["PATH"]
3030
withenv("PATH" => string(joinpath(first(DEPOT_PATH), "bin"), sep, current_path)) do
3131
@test contains(Sys.which(exename), first(DEPOT_PATH))

test/test_packages/Rot13.jl/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ uuid = "43ef800a-eac4-47f4-949b-25107b932e8f"
33
version = "0.1.0"
44

55
[apps]
6-
rot13 = {}
6+
juliarot13 = {}

0 commit comments

Comments
 (0)