Skip to content

Commit

Permalink
internal/linux: only run tests on Linux
Browse files Browse the repository at this point in the history
A lot of the tests in the internal/linux package can only be
executed on Linux. Add build tags so that the tests do not run
on other platforms.

No build tags are added to the implementation to avoid having
to change non-test code in other packages.

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
  • Loading branch information
lmb committed Jan 21, 2025
1 parent abb8387 commit df6c610
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/linux/auxv_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build linux

package linux

import (
Expand Down
2 changes: 2 additions & 0 deletions internal/linux/statfs_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build linux

package linux

import (
Expand Down
2 changes: 2 additions & 0 deletions internal/linux/vdso_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build linux

package linux

import (
Expand Down
2 changes: 2 additions & 0 deletions internal/linux/version_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build linux

package linux

import (
Expand Down

0 comments on commit df6c610

Please sign in to comment.