1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-24 13:48:56 +08:00

Drop test for Darwin Pids()

This commit is contained in:
Pierre Fersing 2022-01-13 13:27:05 +01:00
parent b9b3dbe67a
commit 60eae48e6a
2 changed files with 0 additions and 30 deletions

View File

@ -46,26 +46,6 @@ func Test_Pids(t *testing.T) {
}
}
func Test_Pids_Fail(t *testing.T) {
if runtime.GOOS != "darwin" {
t.Skip("darwin only")
}
mu.Lock()
defer mu.Unlock()
invoke = common.FakeInvoke{Suffix: "fail"}
ret, err := Pids()
skipIfNotImplementedErr(t, err)
invoke = common.Invoke{}
if err != nil {
t.Errorf("error %v", err)
}
if len(ret) != 9 {
t.Errorf("wrong getted pid nums: %v/%d", ret, len(ret))
}
}
func Test_Pid_exists(t *testing.T) {
checkPid := os.Getpid()

View File

@ -1,10 +0,0 @@
PID
245
247
248
249
254
262
264
265
267