diff options
| author | David du Colombier <0intro@gmail.com> | 2017-03-01 18:39:01 +0100 |
|---|---|---|
| committer | David du Colombier <0intro@gmail.com> | 2017-03-01 17:49:23 +0000 |
| commit | 32bb13abbeeeeb91dd4deea746bcb85cc2634682 (patch) | |
| tree | c0dc7145d827d16f3f6b1fd55f3755ad746a9656 /src/cmd/vendor/github.com/google/pprof | |
| parent | 44053de36509f4634befbf7ad442b5debd0f0cdf (diff) | |
| download | go-32bb13abbeeeeb91dd4deea746bcb85cc2634682.tar.xz | |
cmd/vendor/github.com/google/pprof: refresh from upstream
Updating to commit b1c91b9f8fa7647e4c43c96c50f245df551f7013
from github.com/google/pprof
Fixes #19342.
Change-Id: Iaaa283cdce3f9bf3e5fe713be7d23c477b579092
Reviewed-on: https://go-review.googlesource.com/37634
Run-TryBot: David du Colombier <0intro@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/vendor/github.com/google/pprof')
| -rw-r--r-- | src/cmd/vendor/github.com/google/pprof/internal/driver/fetch_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/vendor/github.com/google/pprof/internal/driver/fetch_test.go b/src/cmd/vendor/github.com/google/pprof/internal/driver/fetch_test.go index e592b77cc8..a1b52affbc 100644 --- a/src/cmd/vendor/github.com/google/pprof/internal/driver/fetch_test.go +++ b/src/cmd/vendor/github.com/google/pprof/internal/driver/fetch_test.go @@ -38,7 +38,7 @@ func TestSymbolizationPath(t *testing.T) { } // Save environment variables to restore after test - saveHome := os.Getenv("HOME") + saveHome := os.Getenv(homeEnv()) savePath := os.Getenv("PPROF_BINARY_PATH") tempdir, err := ioutil.TempDir("", "home") @@ -50,7 +50,7 @@ func TestSymbolizationPath(t *testing.T) { os.Create(filepath.Join(tempdir, "pprof", "binaries", "abcde10001", "binary")) obj := testObj{tempdir} - os.Setenv("HOME", tempdir) + os.Setenv(homeEnv(), tempdir) for _, tc := range []struct { env, file, buildID, want string msgCount int @@ -79,7 +79,7 @@ func TestSymbolizationPath(t *testing.T) { t.Errorf("%s:%s:%s, want %s, got %s", tc.env, tc.file, tc.buildID, tc.want, file) } } - os.Setenv("HOME", saveHome) + os.Setenv(homeEnv(), saveHome) os.Setenv("PPROF_BINARY_PATH", savePath) } |
