Skip to content

Commit

Permalink
[process] Properly test Ppid() against known value
Browse files Browse the repository at this point in the history
  • Loading branch information
Lomanic committed Sep 29, 2020
1 parent c9c4021 commit 64ba9d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions process/process_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 64ba9d0

Please sign in to comment.