Skip to content

Commit

Permalink
proc/test: reenable cgo testing on FreeBSD (#3394)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarzilli committed Jun 7, 2023
1 parent 9b17415 commit 5880f4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/proc/test/support.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,9 @@ var hasCgo = func() bool {
if strings.TrimSpace(string(out)) != "1" {
return false
}
_, err = exec.LookPath("gcc")
return err == nil
_, err1 := exec.LookPath("gcc")
_, err2 := exec.LookPath("clang")
return (err1 == nil) || (err2 == nil)
}()

func MustHaveCgo(t *testing.T) {
Expand Down

0 comments on commit 5880f4c

Please sign in to comment.