]> Cypherpunks repositories - gostls13.git/commit
testing: fix reported caller name for funcs passed to Cleanup
authorMichał Łowicki <mlowicki@gmail.com>
Mon, 4 May 2020 21:23:28 +0000 (22:23 +0100)
committerIan Lance Taylor <iant@golang.org>
Tue, 5 May 2020 22:44:36 +0000 (22:44 +0000)
commit7db566f9c26236f852fa0f980e6c4e8cf86890f3
tree7e2f81d6eedc815e69b953d68036319b19697c36
parent430cee7cd2c2cd4b458fbf2b2dcc4604a3ed8c05
testing: fix reported caller name for funcs passed to Cleanup

Record the caller when Cleanup is called to report it with t.Log
instead of unhelpful line in testing.go.

Fixes #38800

Change-Id: I3136f5d92a0e5a48f8b32a2e13b2521bc91d72d1
Reviewed-on: https://go-review.googlesource.com/c/go/+/232237
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/testing/helper_test.go
src/testing/helperfuncs_test.go
src/testing/testing.go