diff --git a/process/process_test.go b/process/process_test.go index e7a3b2b..e18a26d 100644 --- a/process/process_test.go +++ b/process/process_test.go @@ -181,6 +181,10 @@ func Test_Process_Ppid(t *testing.T) { if v == 0 { t.Errorf("return value is 0 %v", v) } + expected := os.Getppid() + if v != int32(expected) { + t.Errorf("return value is %v, expected %v", v, expected) + } } func Test_Process_Status(t *testing.T) {