Skip to content

Commit

Permalink
Merge pull request JuliaLang#10266 from JuliaLang/tk/exename
Browse files Browse the repository at this point in the history
Use julia_exename() for julia_cmd and in repl, spawn tests
  • Loading branch information
jakebolewski committed Feb 23, 2015
2 parents a144292 + 05b0859 commit c491723
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion base/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ warn(io::IO, err::Exception; prefix="ERROR: ", kw...) =
warn(err::Exception; prefix="ERROR: ", kw...) =
warn(STDERR, err, prefix=prefix; kw...)

function julia_cmd(julia=joinpath(JULIA_HOME, "julia"))
function julia_cmd(julia=joinpath(JULIA_HOME, julia_exename()))
opts = JLOptions()
cpu_target = bytestring(opts.cpu_target)
image_file = bytestring(opts.image_file)
Expand Down
2 changes: 1 addition & 1 deletion test/cmdlineargs.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let exename = joinpath(JULIA_HOME, (ccall(:jl_is_debugbuild, Cint, ()) == 0 ? "julia" : "julia-debug"))
let exename = joinpath(JULIA_HOME, Base.julia_exename())
# --version
let v = split(readall(`$exename -v`), "julia version ")[end]
@test VERSION == VersionNumber(v)
Expand Down
2 changes: 1 addition & 1 deletion test/repl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ end

ccall(:jl_exit_on_sigint, Void, (Cint,), 1)

let exename=joinpath(JULIA_HOME,(ccall(:jl_is_debugbuild,Cint,())==0?"julia":"julia-debug"))
let exename = joinpath(JULIA_HOME, Base.julia_exename())

# Test REPL in dumb mode
@unix_only begin
Expand Down
2 changes: 1 addition & 1 deletion test/spawn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ unmark(sock)
close(sock)

# issue #4535
exename=joinpath(JULIA_HOME,(ccall(:jl_is_debugbuild,Cint,())==0?"julia":"julia-debug"))
exename = joinpath(JULIA_HOME, Base.julia_exename())
if valgrind_off
# If --trace-children=yes is passed to valgrind, we will get a
# valgrind banner here, not "Hello World\n".
Expand Down

0 comments on commit c491723

Please sign in to comment.