1
0
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:
Josh Bleecher Snyder 2021-10-04 14:06:37 -07:00
parent 17674e2f17
commit 7c79e8ef09

View File

@ -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)
}
}