Skip to content

Commit 60eae48

Browse files
committed
Drop test for Darwin Pids()
1 parent b9b3dbe commit 60eae48

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

process/process_test.go

-20
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,6 @@ func Test_Pids(t *testing.T) {
4646
}
4747
}
4848

49-
func Test_Pids_Fail(t *testing.T) {
50-
if runtime.GOOS != "darwin" {
51-
t.Skip("darwin only")
52-
}
53-
54-
mu.Lock()
55-
defer mu.Unlock()
56-
57-
invoke = common.FakeInvoke{Suffix: "fail"}
58-
ret, err := Pids()
59-
skipIfNotImplementedErr(t, err)
60-
invoke = common.Invoke{}
61-
if err != nil {
62-
t.Errorf("error %v", err)
63-
}
64-
if len(ret) != 9 {
65-
t.Errorf("wrong getted pid nums: %v/%d", ret, len(ret))
66-
}
67-
}
68-
6949
func Test_Pid_exists(t *testing.T) {
7050
checkPid := os.Getpid()
7151

process/testdata/darwin/ps-ax-opid_fail

-10
This file was deleted.

0 commit comments

Comments
 (0)