From: Josh Bleecher Snyder Date: Mon, 4 Oct 2021 21:06:37 +0000 (-0700) Subject: cmd/objdump: print full disassembly when testing with -v X-Git-Tag: go1.18beta1~1065 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7c79e8ef0922ae27349cea9abd7e637ac429dfa0;p=gostls13.git 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 Run-TryBot: Josh Bleecher Snyder Reviewed-by: Brad Fitzpatrick --- diff --git a/src/cmd/objdump/objdump_test.go b/src/cmd/objdump/objdump_test.go index f231a7c6e0..ff43161030 100644 --- a/src/cmd/objdump/objdump_test.go +++ b/src/cmd/objdump/objdump_test.go @@ -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) } }