1// Copyright 2018 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build freebsd
6
7package syscall_test
8
9import (
10	"os"
11	"testing"
12)
13
14func TestMain(m *testing.M) {
15	if os.Getenv("GO_DEATHSIG_PARENT") == "1" {
16		deathSignalParent()
17	} else if os.Getenv("GO_DEATHSIG_CHILD") == "1" {
18		deathSignalChild()
19	}
20
21	os.Exit(m.Run())
22}
23