]> Cypherpunks repositories - gostls13.git/commit
runtime: fix TestDeferWithRepeatedRepanics and TestIssue37688 to be less chatty
authorDan Scales <danscales@google.com>
Wed, 22 Apr 2020 21:28:51 +0000 (14:28 -0700)
committerDan Scales <danscales@google.com>
Thu, 23 Apr 2020 18:33:44 +0000 (18:33 +0000)
commit939379ffb6175c8f86dbf99a28741b4318a964eb
treedea86868a12edc0af2957cea2ef7a8c75609009c
parent681ba4307781a1f1581bda3c52255186e4b79546
runtime: fix TestDeferWithRepeatedRepanics and TestIssue37688 to be less chatty

Converted some Println() statements (used to make sure that certain variables were
kept alive and not optimized out) to assignments into global variables, so the
tests don't produce extraneous output when there is a failure.

Fixes #38594

Change-Id: I7eb41bb02b2b1e78afd7849676b5c85bc11c759c
Reviewed-on: https://go-review.googlesource.com/c/go/+/229538
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/defer_test.go