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.
20 lines
277 B
Go
20 lines
277 B
Go
11 years ago
|
// +build linux freebsd
|
||
|
|
||
|
package gopsutil
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"syscall"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
11 years ago
|
func Test_SendSignal(t *testing.T) {
|
||
11 years ago
|
checkPid := os.Getpid()
|
||
11 years ago
|
|
||
11 years ago
|
p, _ := NewProcess(int32(checkPid))
|
||
|
err := p.SendSignal(syscall.SIGCONT)
|
||
11 years ago
|
if err != nil {
|
||
|
t.Errorf("send signal %v", err)
|
||
|
}
|
||
|
}
|