From e421558a8049168371baad2aa58ac59a13b4633e Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Fri, 17 Sep 2021 12:16:08 -0700 Subject: [PATCH] WIP debug Signed-off-by: Kir Kolyshkin --- seccomp_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/seccomp_test.go b/seccomp_test.go index e065425..9439008 100644 --- a/seccomp_test.go +++ b/seccomp_test.go @@ -54,6 +54,8 @@ func TestGetAPILevel(t *testing.T) { } func subprocessGetAPILevel(t *testing.T) { + t.Logf("version: %d.%d.%d, api supported: %v", verMajor, verMinor, verMicro, APILevelIsSupported()) + api, err := GetAPI() if !APILevelIsSupported() { if api != 0 { @@ -76,6 +78,7 @@ func TestSetAPILevel(t *testing.T) { func subprocessSetAPILevel(t *testing.T) { const expectedAPI = uint(1) + t.Logf("version: %d.%d.%d, api supported: %v", verMajor, verMinor, verMicro, APILevelIsSupported()) err := SetAPI(expectedAPI) if !APILevelIsSupported() { if err == nil {