Skip to content

Commit 0ced5ce

Browse files
committed
skip non-linux
1 parent 478d57c commit 0ced5ce

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

agent/agentproc/proc_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package agentproc_test
22

33
import (
44
"fmt"
5+
"runtime"
56
"strings"
67
"syscall"
78
"testing"
@@ -18,6 +19,10 @@ import (
1819
func TestList(t *testing.T) {
1920
t.Parallel()
2021

22+
if runtime.GOOS != "linux" {
23+
t.Skipf("skipping non-linux environment")
24+
}
25+
2126
t.Run("OK", func(t *testing.T) {
2227
t.Parallel()
2328

@@ -128,6 +133,10 @@ func TestList(t *testing.T) {
128133
func TestProcess(t *testing.T) {
129134
t.Parallel()
130135

136+
if runtime.GOOS != "linux" {
137+
t.Skipf("skipping non-linux environment")
138+
}
139+
131140
t.Run("SetOOMAdj", func(t *testing.T) {
132141
t.Parallel()
133142

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy