Skip to content
Snippets Groups Projects
Commit 7c79e8ef authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder
Browse files

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: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 17674e2f
No related branches found
No related tags found
No related merge requests found
...@@ -228,7 +228,7 @@ func testDisasm(t *testing.T, srcfname string, printCode bool, printGnuAsm bool, ...@@ -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) t.Logf("full disassembly:\n%s", text)
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment