Skip to content

Commit

Permalink
import Sys.BINDIR into Compat.Sys on v0.7 and add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeits committed Dec 20, 2017
1 parent 75458d5 commit 606111d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,8 @@ module Sys

@static if VERSION < v"0.7.0-DEV.3073"
const BINDIR = JULIA_HOME
else
const BINDIR = Base.Sys.BINDIR
end
end

Expand Down
7 changes: 7 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,13 @@ end
@test ComplexF32 === Complex{Float32}
@test ComplexF64 === Complex{Float64}

# 0.7.0-DEV.3073
if VERSION < v"0.7.0-DEV.3073"
@test Compat.Sys.BINDIR === JULIA_HOME
else
@test Compat.Sys.BINDIR === Sys.BINDIR
end

if VERSION < v"0.6.0"
include("deprecated.jl")
end
Expand Down

0 comments on commit 606111d

Please sign in to comment.