]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/vendor/github.com/google/pprof: refresh from upstream
authorDavid du Colombier <0intro@gmail.com>
Fri, 3 Nov 2017 17:11:24 +0000 (18:11 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 3 Nov 2017 17:45:05 +0000 (17:45 +0000)
Updating to commit 79c4198ef7bd1069f8f56501fc05f0f1d2c33d8a
from github.com/google/pprof

Fixes #22561.

Change-Id: Ib92fd443ccc067aef7214e59f594db7f2521535b
Reviewed-on: https://go-review.googlesource.com/75870
Run-TryBot: David du Colombier <0intro@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/vendor/github.com/google/pprof/internal/driver/fetch_test.go
src/cmd/vendor/vendor.json

index dd78bc7a7d37ef9e25bfd49f12e3fde74ef4c88f..b300aa66412d6a3ed39c61f329300c37fcaaeea5 100644 (file)
@@ -351,6 +351,13 @@ func stubHTTPGet(source string, _ time.Duration) (*http.Response, error) {
        return c.Get("file:///" + file)
 }
 
+func closedError() string {
+       if runtime.GOOS == "plan9" {
+               return "listen hungup"
+       }
+       return "use of closed"
+}
+
 func TestHttpsInsecure(t *testing.T) {
        if runtime.GOOS == "nacl" {
                t.Skip("test assumes tcp available")
@@ -372,7 +379,7 @@ func TestHttpsInsecure(t *testing.T) {
                donec <- http.Serve(l, nil)
        }(donec)
        defer func() {
-               if got, want := <-donec, "use of closed"; !strings.Contains(got.Error(), want) {
+               if got, want := <-donec, closedError(); !strings.Contains(got.Error(), want) {
                        t.Fatalf("Serve got error %v, want %q", got, want)
                }
        }()
@@ -416,6 +423,10 @@ func TestHttpsInsecure(t *testing.T) {
        if len(p.SampleType) == 0 {
                t.Fatalf("fetchProfiles(%s) got empty profile: len(p.SampleType)==0", address)
        }
+       if runtime.GOOS == "plan9" {
+               // CPU profiling is not supported on Plan9; see golang.org/issues/22564.
+               return
+       }
        if len(p.Function) == 0 {
                t.Fatalf("fetchProfiles(%s) got non-symbolized profile: len(p.Function)==0", address)
        }
@@ -429,7 +440,6 @@ func TestHttpsInsecure(t *testing.T) {
 var badSigprofOS = map[string]bool{
        "darwin": true,
        "netbsd": true,
-       "plan9":  true,
 }
 
 func checkProfileHasFunction(p *profile.Profile, fname string) error {
index 36716cb9eb10d794c65519a94f136ffab3e0eab8..41020ced82c715697a2b122eb9082f4ccd274ca8 100644 (file)
@@ -9,8 +9,8 @@
                {
                        "canonical": "github.com/google/pprof",
                        "local": "github.com/google/pprof",
-                       "revision": "4fc39a00b6b8c1aad05260f01429ec70e127252c",
-                       "revisionTime": "2017-11-01T07:14:40Z",
+                       "revision": "79c4198ef7bd1069f8f56501fc05f0f1d2c33d8a",
+                       "revisionTime": "2017-11-03T16:44:35Z",
                },
                {
                        "canonical": "golang.org/x/arch/x86/x86asm",