Commit 7acb642e authored by David Crawshaw's avatar David Crawshaw

test: print output on link -X failure

(Split out from CL 22205.)

Change-Id: Iab66ac2a1cd3716966d8e59c570931bce95aba9b
Reviewed-on: https://go-review.googlesource.com/22297Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 46efe0bc
......@@ -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)
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment