Skip to content

Commit

Permalink
Add check for DisableBestEffort in the unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Kailun Qin <[email protected]>
  • Loading branch information
kailun-qin committed Sep 3, 2021
1 parent 14101a2 commit 0fa5201
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libcontainer/specconv/spec_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ func TestSetupLandlock(t *testing.T) {
i, expectedPathRulesAccess[i], rule)
}
}

if landlock.DisableBestEffort {
t.Error("Wrong conversion for DisableBestEffort")
}
}

func TestSetupSeccomp(t *testing.T) {
Expand Down

0 comments on commit 0fa5201

Please sign in to comment.