From: Caleb Spare Date: Wed, 24 Apr 2019 19:09:15 +0000 (-0700) Subject: testing: fix minor bug with mutex profile error message X-Git-Tag: go1.13beta1~564 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=562b7c27ecd9320855e8c89d41fb9a549d93ff34;p=gostls13.git testing: fix minor bug with mutex profile error message Change-Id: I92b7a44476cfd9e2f099477b9d7903bbaa2fd8da Reviewed-on: https://go-review.googlesource.com/c/go/+/173720 Run-TryBot: Caleb Spare Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/src/testing/testing.go b/src/testing/testing.go index 8cbb4318fc..a4681ab95a 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -1287,7 +1287,7 @@ func (m *M) writeProfiles() { os.Exit(2) } if err = m.deps.WriteProfileTo("mutex", f, 0); err != nil { - fmt.Fprintf(os.Stderr, "testing: can't write %s: %s\n", *blockProfile, err) + fmt.Fprintf(os.Stderr, "testing: can't write %s: %s\n", *mutexProfile, err) os.Exit(2) } f.Close()