]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix backward error message
authorMichael Pratt <mpratt@google.com>
Wed, 27 Oct 2021 20:09:59 +0000 (16:09 -0400)
committerMichael Pratt <mpratt@google.com>
Thu, 28 Oct 2021 16:54:58 +0000 (16:54 +0000)
This was added in CL 339990.

Change-Id: I4b0f97bf1a3926e37a42f77e149dcab3b7b75a63
Reviewed-on: https://go-review.googlesource.com/c/go/+/359255
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/runtime/crash_cgo_test.go

index 8485b6a1a5799a8798fa519eaa96350182b7a40c..c0d4569462cadbbefb674eb3b1118107803d3b32 100644 (file)
@@ -534,7 +534,7 @@ func TestCgoTracebackSigpanic(t *testing.T) {
        // No runtime errors like "runtime: unexpected return pc".
        nowant := "runtime: "
        if strings.Contains(got, nowant) {
-               t.Errorf("unexpectedly saw %q in output", want)
+               t.Errorf("unexpectedly saw %q in output", nowant)
        }
 }