mirror of
https://github.com/golang/go
synced 2024-11-17 17:34:46 -07:00
cmd/objdump: print full disassembly when testing with -v
It is helpful for debugging. Change-Id: Idd566d312037420f8341fcf502a45410a8497798 Reviewed-on: https://go-review.googlesource.com/c/go/+/353878 Trust: Josh Bleecher Snyder <josharian@gmail.com> Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
17674e2f17
commit
7c79e8ef09
@ -228,7 +228,7 @@ func testDisasm(t *testing.T, srcfname string, printCode bool, printGnuAsm bool,
|
||||
}
|
||||
}
|
||||
|
||||
if !ok {
|
||||
if !ok || testing.Verbose() {
|
||||
t.Logf("full disassembly:\n%s", text)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user