From 7acb642e4f0b77763a13c99c756aa846b01a428c Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Wed, 20 Apr 2016 10:29:43 -0400 Subject: test: print output on link -X failure (Split out from CL 22205.) Change-Id: Iab66ac2a1cd3716966d8e59c570931bce95aba9b Reviewed-on: https://go-review.googlesource.com/22297 Reviewed-by: Brad Fitzpatrick --- test/linkx_run.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/linkx_run.go') diff --git a/test/linkx_run.go b/test/linkx_run.go index 440271ac4a..cc249c9cfc 100644 --- a/test/linkx_run.go +++ b/test/linkx_run.go @@ -60,11 +60,11 @@ func test(sep string) { } outstr := string(outx) if !strings.Contains(outstr, "main.b") { - fmt.Printf("-X linker flag did not diagnose overwrite of main.b\n") + fmt.Printf("-X linker flag did not diagnose overwrite of main.b:\n%s\n", outstr) os.Exit(1) } if !strings.Contains(outstr, "main.x") { - fmt.Printf("-X linker flag did not diagnose overwrite of main.x\n") + fmt.Printf("-X linker flag did not diagnose overwrite of main.x:\n%s\n", outstr) os.Exit(1) } } -- cgit v1.2.1