From 60eae48e6aa75012c62f2926a43d64bf40d88a8d Mon Sep 17 00:00:00 2001 From: Pierre Fersing Date: Thu, 13 Jan 2022 13:27:05 +0100 Subject: [PATCH] Drop test for Darwin Pids() --- process/process_test.go | 20 -------------------- process/testdata/darwin/ps-ax-opid_fail | 10 ---------- 2 files changed, 30 deletions(-) delete mode 100644 process/testdata/darwin/ps-ax-opid_fail diff --git a/process/process_test.go b/process/process_test.go index 2bb72b8d..786eb517 100644 --- a/process/process_test.go +++ b/process/process_test.go @@ -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() diff --git a/process/testdata/darwin/ps-ax-opid_fail b/process/testdata/darwin/ps-ax-opid_fail deleted file mode 100644 index fce59efc..00000000 --- a/process/testdata/darwin/ps-ax-opid_fail +++ /dev/null @@ -1,10 +0,0 @@ - PID - 245 - 247 - 248 - 249 - 254 - 262 - 264 - 265 - 267