Skip to content

Commit

Permalink
Tests for #11170
Browse files Browse the repository at this point in the history
backporting note: need different syntax for this on release-0.3

(cherry picked from commit bf784a5)

Conflicts:
	test/sysinfo.jl
  • Loading branch information
tkelman committed May 14, 2015
1 parent b1e665c commit 556e4b7
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 @@ -4,3 +4,11 @@
sprint(Base.Sys.cpu_summary)
@test Base.Sys.uptime() > 0
Base.Sys.loadavg()

# issue #11170
Base.with_env("TEST", "nonempty") do
@test ENV["TEST"] == "nonempty"
end
Base.with_env("TEST", "") do
@test ENV["TEST"] == ""
end

0 comments on commit 556e4b7

Please sign in to comment.