summaryrefslogtreecommitdiff
path: root/test/linkx_run.go
diff options
context:
space:
mode:
authorDavid Crawshaw <crawshaw@golang.org>2016-04-20 10:29:43 -0400
committerDavid Crawshaw <crawshaw@golang.org>2016-04-20 17:37:35 +0000
commit7acb642e4f0b77763a13c99c756aa846b01a428c (patch)
treee589b26d63b5dfb2ccb1e8fdcf3bf95cd323530c /test/linkx_run.go
parent46efe0bc7fb1933c74d80cd3fe7c47f21d042a5d (diff)
downloadgo-git-7acb642e4f0b77763a13c99c756aa846b01a428c.tar.gz
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 <bradfitz@golang.org>
Diffstat (limited to 'test/linkx_run.go')
-rw-r--r--test/linkx_run.go4
1 files changed, 2 insertions, 2 deletions
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)
}
}