aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/debug/stack_test.go
diff options
context:
space:
mode:
authorAlan Donovan <adonovan@google.com>2024-05-15 17:41:56 -0400
committerAlan Donovan <adonovan@google.com>2024-05-16 15:19:04 +0000
commita22cb5cabe2bcc8ed02c43a66a1bd319cb28e89c (patch)
treebee3ad25c96cc9752b1aefdf1c89986dfc72426b /src/runtime/debug/stack_test.go
parent6cd066f8b22290a1737a19d25f5dd899f720180a (diff)
downloadgo-a22cb5cabe2bcc8ed02c43a66a1bd319cb28e89c.tar.xz
runtime/debug: eliminate temporary variadicity from SetCrashOutput
Updates #67182 Change-Id: I33fc8c515f4a9d120262ba30f61aea80ede5e9f8 Reviewed-on: https://go-review.googlesource.com/c/go/+/585420 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/debug/stack_test.go')
-rw-r--r--src/runtime/debug/stack_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/debug/stack_test.go b/src/runtime/debug/stack_test.go
index 289749ccb4..e1559303f0 100644
--- a/src/runtime/debug/stack_test.go
+++ b/src/runtime/debug/stack_test.go
@@ -13,6 +13,7 @@ import (
"os/exec"
"path/filepath"
"runtime"
+ "runtime/debug"
. "runtime/debug"
"strings"
"testing"
@@ -29,7 +30,7 @@ func TestMain(m *testing.M) {
if err != nil {
log.Fatal(err)
}
- if err := SetCrashOutput(f); err != nil {
+ if err := SetCrashOutput(f, debug.CrashOptions{}); err != nil {
log.Fatal(err) // e.g. EMFILE
}
println("hello")