Commit afb0ae67 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

runtime/pprof: fix typo in test

Not sure what I was thinking.

Change-Id: I143cdf7c5ef8e7b2394afeca6b30c46bb2c19a55
Reviewed-on: https://go-review.googlesource.com/33340Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent 4ca3a8f7
...@@ -368,9 +368,9 @@ func getLinuxKernelConfig() string { ...@@ -368,9 +368,9 @@ func getLinuxKernelConfig() string {
defer f.Close() defer f.Close()
return slurpString(f) return slurpString(f)
} }
uname, _ := exec.Command("uname, -r").Output() uname, _ := exec.Command("uname", "-r").Output()
if len(uname) > 0 { 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() defer f.Close()
return slurpString(f) return slurpString(f)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment