Skip to content

Commit ec51a3c

Browse files
committed
test: fix APILevelIsSupported
Functions seccomp_api_get(3) and seccomp_api_set(3) appeared in libseccomp 2.4.0, not 2.3.3 like the code assumed. This fixes TestGetAPILevel failure with libseccomp 2.3.3. Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent e2a3dd0 commit ec51a3c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

seccomp_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ func execInSubprocess(t *testing.T, f func(t *testing.T)) {
6464

6565
func APILevelIsSupported() bool {
6666
return verMajor > 2 ||
67-
(verMajor == 2 && verMinor > 3) ||
68-
(verMajor == 2 && verMinor == 3 && verMicro >= 3)
67+
(verMajor == 2 && verMinor >= 4)
6968
}
7069

7170
func TestGetAPILevel(t *testing.T) {

0 commit comments

Comments
 (0)