mirror of https://github.com/shirou/gopsutil
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
333 B
Go
22 lines
333 B
Go
// SPDX-License-Identifier: BSD-3-Clause
|
|
//go:build linux || freebsd
|
|
|
|
package process
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
func Test_SendSignal(t *testing.T) {
|
|
checkPid := os.Getpid()
|
|
|
|
p, _ := NewProcess(int32(checkPid))
|
|
err := p.SendSignal(unix.SIGCONT)
|
|
if err != nil {
|
|
t.Errorf("send signal %v", err)
|
|
}
|
|
}
|