From: Brad Fitzpatrick Date: Wed, 6 May 2015 16:53:48 +0000 (-0700) Subject: os: eradicate smallpox after test X-Git-Tag: go1.5beta1~706 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ec87dbf91330b8f12851b50675c812e4e3aee203;p=gostls13.git os: eradicate smallpox after test Otherwise: $ go test -short -cpu=1,1,2,2 --- FAIL: TestLookupEnv (0.00s) env_test.go:102: SMALLPOX="virus" --- FAIL: TestLookupEnv-2 (0.00s) env_test.go:102: SMALLPOX="virus" --- FAIL: TestLookupEnv-2 (0.00s) env_test.go:102: SMALLPOX="virus" Change-Id: Ic1f6dd1bae3c79c4f7da02bc8c30b5e599627a82 Reviewed-on: https://go-review.googlesource.com/9794 Reviewed-by: Rob Pike --- diff --git a/src/os/env_test.go b/src/os/env_test.go index 2224890869..d1074cdc60 100644 --- a/src/os/env_test.go +++ b/src/os/env_test.go @@ -101,6 +101,7 @@ func TestLookupEnv(t *testing.T) { if ok || value != "" { t.Fatalf("%s=%q", smallpox, value) } + defer Unsetenv(smallpox) err := Setenv(smallpox, "virus") if err != nil { t.Fatalf("failed to release smallpox virus")