mirror of https://github.com/shirou/gopsutil
add signal test stub on windows. and move to signal test process_test_posix
parent
d1b1221e7f
commit
665ddbd7c3
@ -0,0 +1,19 @@
|
|||||||
|
// +build linux freebsd
|
||||||
|
|
||||||
|
package gopsutil
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
"syscall"
|
||||||
|
"testing"
|
||||||
|
)
|
||||||
|
|
||||||
|
func Test_SendSignal(t *testing.T) {
|
||||||
|
check_pid := os.Getpid()
|
||||||
|
|
||||||
|
p, _ := NewProcess(int32(check_pid))
|
||||||
|
err := p.Send_signal(syscall.SIGCONT)
|
||||||
|
if err != nil {
|
||||||
|
t.Errorf("send signal %v", err)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue