Skip to content

Commit

Permalink
Deal with JULIA_BINDIR mapping in windows wrapper exe
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Jul 2, 2020
1 parent 83ca239 commit a0d2a92
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stdlib/InteractiveUtils/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,11 @@ end
@test occursin("Environment:", ver)
end
let exename = `$(Base.julia_cmd()) --startup-file=no`
@test !occursin("Environment:", read(setenv(`$exename -e 'using InteractiveUtils; versioninfo()'`,
String[]), String))
# Windows wrapper .exe unconditionally adds a JULIA_BINDIR environment mapping
if !Sys.iswindows()
@test !occursin("Environment:", read(setenv(`$exename -e 'using InteractiveUtils; versioninfo()'`,
String[]), String))
end
@test occursin("Environment:", read(setenv(`$exename -e 'using InteractiveUtils; versioninfo()'`,
String["JULIA_CPU_THREADS=1"]), String))
end
Expand Down

0 comments on commit a0d2a92

Please sign in to comment.