Skip to content

Commit 6bd0e7f

Browse files
committed
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 <[email protected]> Run-TryBot: Michael Pratt <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Cherry Mui <[email protected]>
1 parent 5fce1d9 commit 6bd0e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/crash_cgo_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ func TestCgoTracebackSigpanic(t *testing.T) {
534534
// No runtime errors like "runtime: unexpected return pc".
535535
nowant := "runtime: "
536536
if strings.Contains(got, nowant) {
537-
t.Errorf("unexpectedly saw %q in output", want)
537+
t.Errorf("unexpectedly saw %q in output", nowant)
538538
}
539539
}
540540

0 commit comments

Comments
 (0)