From: Brad Fitzpatrick Date: Thu, 17 Nov 2016 16:28:45 +0000 (+0000) Subject: runtime/pprof: fix typo in test X-Git-Tag: go1.8beta1~116 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=afb0ae67b7d37b6678179f236c98ef0d952c0403;p=gostls13.git runtime/pprof: fix typo in test Not sure what I was thinking. Change-Id: I143cdf7c5ef8e7b2394afeca6b30c46bb2c19a55 Reviewed-on: https://go-review.googlesource.com/33340 Reviewed-by: Ian Lance Taylor --- diff --git a/src/runtime/pprof/pprof_test.go b/src/runtime/pprof/pprof_test.go index b0b15f3d1c..47c29d0688 100644 --- a/src/runtime/pprof/pprof_test.go +++ b/src/runtime/pprof/pprof_test.go @@ -368,9 +368,9 @@ func getLinuxKernelConfig() string { defer f.Close() return slurpString(f) } - uname, _ := exec.Command("uname, -r").Output() + uname, _ := exec.Command("uname", "-r").Output() if len(uname) > 0 { - if f, err := os.Open("/boot/config-" + string(uname)); err == nil { + if f, err := os.Open("/boot/config-" + strings.TrimSpace(string(uname))); err == nil { defer f.Close() return slurpString(f) }