shirou_gopsutil/process_posix_test.go

20 lines
277 B
Go
Raw Normal View History

// +build linux freebsd
package gopsutil
import (
"os"
"syscall"
"testing"
)
2014-04-30 15:22:54 +08:00
func Test_SendSignal(t *testing.T) {
2014-04-30 15:16:07 +08:00
checkPid := os.Getpid()
2014-04-30 15:16:07 +08:00
p, _ := NewProcess(int32(checkPid))
err := p.SendSignal(syscall.SIGCONT)
if err != nil {
t.Errorf("send signal %v", err)
}
}