14 lines
197 B
Go
14 lines
197 B
Go
package nginx
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestIsPIDAliveCurrentProcess(t *testing.T) {
|
|
pid := os.Getpid()
|
|
if !isPIDAlive(pid) {
|
|
t.Fatalf("expected current pid %d to be alive", pid)
|
|
}
|
|
}
|