Skip to content

Commit

Permalink
WIP debug
Browse files Browse the repository at this point in the history
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
kolyshkin committed Sep 17, 2021
1 parent c462262 commit e421558
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions seccomp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit e421558

Please sign in to comment.