mirror of
https://github.com/golang/go
synced 2024-11-15 01:50:28 -07:00
cmd/compile/internal/ssa: print output on failure in TestFmaHash
When the test fails to run the command, print the error message to help debug. Change-Id: I443579a622ba1bf67ef27071f141e945303d4c2b Reviewed-on: https://go-review.googlesource.com/c/go/+/585357 Reviewed-by: David Chase <drchase@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
1f6a983baf
commit
b86527ec05
@ -41,7 +41,7 @@ func TestFmaHash(t *testing.T) {
|
|||||||
t.Logf("%v", cmd.Env)
|
t.Logf("%v", cmd.Env)
|
||||||
b, e := cmd.CombinedOutput()
|
b, e := cmd.CombinedOutput()
|
||||||
if e != nil {
|
if e != nil {
|
||||||
t.Error(e)
|
t.Errorf("build failed: %v\n%s", e, b)
|
||||||
}
|
}
|
||||||
s := string(b) // Looking for "GOFMAHASH triggered main.main:24"
|
s := string(b) // Looking for "GOFMAHASH triggered main.main:24"
|
||||||
re := "fmahash(0?) triggered .*fma.go:29:..;.*fma.go:18:.."
|
re := "fmahash(0?) triggered .*fma.go:29:..;.*fma.go:18:.."
|
||||||
|
Loading…
Reference in New Issue
Block a user