Source file src/syscall/syscall_freebsd_test.go

     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  
     7  package syscall_test
     8  
     9  import (
    10  	"os"
    11  	"testing"
    12  )
    13  
    14  func 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  

View as plain text