Files

14 lines
197 B
Go
Raw Permalink Normal View History

2026-09-23 09:40:59 +08:00
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)
}
}