From 6bd0e7fa8a2cb5c8de9d4566c900233715d8cf0e Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Wed, 27 Oct 2021 16:09:59 -0400 Subject: [PATCH] runtime: fix backward error message This was added in CL 339990. Change-Id: I4b0f97bf1a3926e37a42f77e149dcab3b7b75a63 Reviewed-on: https://go-review.googlesource.com/c/go/+/359255 Trust: Michael Pratt Run-TryBot: Michael Pratt TryBot-Result: Go Bot Reviewed-by: Cherry Mui --- src/runtime/crash_cgo_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/crash_cgo_test.go b/src/runtime/crash_cgo_test.go index 8485b6a1a5..c0d4569462 100644 --- a/src/runtime/crash_cgo_test.go +++ b/src/runtime/crash_cgo_test.go @@ -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) } } -- 2.50.0