aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/debug/stack_test.go
diff options
context:
space:
mode:
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")