From: Ian Lance Taylor Date: Tue, 7 Jan 2020 18:55:35 +0000 (-0800) Subject: runtime: mark testCallersEqual as a test helper X-Git-Tag: go1.15beta1~1132 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7ee3b63c8bab7d1e6d3b8df21a465aecd2e08447;p=gostls13.git runtime: mark testCallersEqual as a test helper Change-Id: I25e6fb733618b0a7af8adc69be85f3503810acf4 Reviewed-on: https://go-review.googlesource.com/c/go/+/213658 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Dan Scales --- diff --git a/src/runtime/callers_test.go b/src/runtime/callers_test.go index 302e33deeb..3cf3fbe5ac 100644 --- a/src/runtime/callers_test.go +++ b/src/runtime/callers_test.go @@ -68,6 +68,8 @@ func testCallers(t *testing.T, pcs []uintptr, pan bool) { } func testCallersEqual(t *testing.T, pcs []uintptr, want []string) { + t.Helper() + got := make([]string, 0, len(want)) frames := runtime.CallersFrames(pcs)