Skip to content

Commit 5ed83ab

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 b9b0628 commit 5ed83ab

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
@@ -62,8 +62,7 @@ func execInSubprocess(t *testing.T, f func(t *testing.T)) {
6262

6363
func APILevelIsSupported() bool {
6464
return verMajor > 2 ||
65-
(verMajor == 2 && verMinor > 3) ||
66-
(verMajor == 2 && verMinor == 3 && verMicro >= 3)
65+
(verMajor == 2 && verMinor >= 4)
6766
}
6867

6968
func TestGetAPILevel(t *testing.T) {

0 commit comments

Comments
 (0)