From 8f2cdfdb86339873e5b00aa788d9439e73de126d Mon Sep 17 00:00:00 2001 From: Tony Kelman Date: Fri, 8 May 2015 21:22:12 -0700 Subject: [PATCH] Tests for #11170 backporting note: need different syntax for this on release-0.3 --- test/sysinfo.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/sysinfo.jl b/test/sysinfo.jl index d704f818e27ef..90e8f149fa74b 100644 --- a/test/sysinfo.jl +++ b/test/sysinfo.jl @@ -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