summaryrefslogtreecommitdiff
path: root/pid_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pid_test.go')
-rw-r--r--pid_test.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/pid_test.go b/pid_test.go
deleted file mode 100644
index 2c92641..0000000
--- a/pid_test.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package main
-
-import (
- "syscall"
- "testing"
-)
-
-const (
- invalidPid = 345678
-)
-
-func TestPidRunning(t *testing.T) {
- pid := syscall.Getpid()
- if !pidRunning(pid) {
- t.Errorf("pid %v is not running", pid)
- }
-
- if pidRunning(invalidPid) {
- t.Errorf("pid %v is running", invalidPid)
- }
-}