diff --git a/pkg/proc/test/support.go b/pkg/proc/test/support.go index 3ce431d03b58172652cfde33397c73fa4200be0b..6b0f12edee39f08f153b86225ac71331d59a7090 100644 --- a/pkg/proc/test/support.go +++ b/pkg/proc/test/support.go @@ -367,7 +367,11 @@ var hasCgo = func() bool { if err != nil { panic(err) } - return strings.TrimSpace(string(out)) == "1" + if strings.TrimSpace(string(out)) != "1" { + return false + } + _, err = exec.LookPath("gcc") + return err == nil }() func MustHaveCgo(t *testing.T) {