mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: include stderr when objdump fails
If objdump panics, we want the panic included in the test log. Change-Id: I6a6a636c13c5ba08acaa1c6c8714541a8e91542b Reviewed-on: https://go-review.googlesource.com/c/go/+/704338 Reviewed-by: Florian Lehner <lehner.florian86@gmail.com> Auto-Submit: Michael Pratt <mpratt@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
8616981ce6
commit
9693b94be0
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ func TestUnsafePoint(t *testing.T) {
|
||||||
cmd := exec.Command(testenv.GoToolPath(t), "tool", "objdump", "-s", "setGlobalPointer", os.Args[0])
|
cmd := exec.Command(testenv.GoToolPath(t), "tool", "objdump", "-s", "setGlobalPointer", os.Args[0])
|
||||||
out, err := cmd.CombinedOutput()
|
out, err := cmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("can't objdump %v", err)
|
t.Fatalf("can't objdump %v:\n%s", err, out)
|
||||||
}
|
}
|
||||||
lines := strings.Split(string(out), "\n")[1:]
|
lines := strings.Split(string(out), "\n")[1:]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue