1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-24 13:48:56 +08:00
shirou_gopsutil/process/process_posix_test.go

22 lines
333 B
Go
Raw Permalink Normal View History

// SPDX-License-Identifier: BSD-3-Clause
2021-12-22 21:54:41 +00:00
//go:build linux || freebsd
2014-12-30 22:09:05 +09:00
package process
import (
"os"
"testing"
"golang.org/x/sys/unix"
)
2014-04-30 16:22:54 +09:00
func Test_SendSignal(t *testing.T) {
2014-04-30 16:16:07 +09:00
checkPid := os.Getpid()
p, _ := NewProcess(int32(checkPid))
err := p.SendSignal(unix.SIGCONT)
if err != nil {
t.Errorf("send signal %v", err)
}
}