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")
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)
}
}()
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)
}
var badSigprofOS = map[string]bool{
"darwin": true,
"netbsd": true,
- "plan9": true,
}
func checkProfileHasFunction(p *profile.Profile, fname string) error {
{
"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",