Skip to content

Commit

Permalink
Tests for JuliaLang#11170
Browse files Browse the repository at this point in the history
backporting note: need different syntax for this on release-0.3
  • Loading branch information
tkelman committed Jun 6, 2015
1 parent 14414f9 commit 8f2cdfd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/sysinfo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,11 @@ Base.Sys.loadavg()
@test_throws ArgumentError ENV["bad\0name"] = "ok"
@test_throws ArgumentError ENV["okname"] = "bad\0val"
@test_throws ArgumentError Sys.set_process_title("bad\0title")

# issue #11170
withenv("TEST"=>"nonempty") do
@test ENV["TEST"] == "nonempty"
end
withenv("TEST"=>"") do
@test ENV["TEST"] == ""
end

0 comments on commit 8f2cdfd

Please sign in to comment.