aboutsummaryrefslogtreecommitdiff
path: root/src/bytes/bytes_test.go
diff options
context:
space:
mode:
authorJonathan Amsterdam <jba@google.com>2025-05-15 11:16:34 -0400
committerGopher Robot <gobot@golang.org>2025-05-15 10:24:18 -0700
commit6df855ebac86499402cfd31d92256592c3b2a233 (patch)
tree1746b8b719fdc83d334c93479daf6b4454688b18 /src/bytes/bytes_test.go
parentfac2ccbed320ef9fdca251d63b759b61bbc21f2a (diff)
downloadgo-6df855ebac86499402cfd31d92256592c3b2a233.tar.xz
testing: fix panic in t.Log
If a testing.TB is no longer on the stack, t.Log would panic because its outputWriter is nil. Check for nil and drop the write, which is the previous behavior. Change-Id: Ifde97997a3aa26ae604ac9c218588c1980110cbf Reviewed-on: https://go-review.googlesource.com/c/go/+/673215 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Alan Donovan <adonovan@google.com> Auto-Submit: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'src/bytes/bytes_test.go')
0 files changed, 0 insertions, 0 deletions