aboutsummaryrefslogtreecommitdiff
path: root/src/testing/internal/testdeps/deps.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/internal/testdeps/deps.go')
-rw-r--r--src/testing/internal/testdeps/deps.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testing/internal/testdeps/deps.go b/src/testing/internal/testdeps/deps.go
index af08dd768a..3608d33294 100644
--- a/src/testing/internal/testdeps/deps.go
+++ b/src/testing/internal/testdeps/deps.go
@@ -121,3 +121,8 @@ func (TestDeps) StopTestLog() error {
log.w = nil
return err
}
+
+// SetPanicOnExit0 tells the os package whether to panic on os.Exit(0).
+func (TestDeps) SetPanicOnExit0(v bool) {
+ testlog.SetPanicOnExit0(v)
+}