Skip to content

Commit 22802a8

Browse files
committed
Add check for DisableBestEffort in the unit test
Signed-off-by: Kailun Qin <[email protected]>
1 parent 6a698a6 commit 22802a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcontainer/specconv/spec_linux_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,10 @@ func TestSetupLandlock(t *testing.T) {
282282
i, expectedPathRulesAccess[i], rule)
283283
}
284284
}
285+
286+
if landlock.DisableBestEffort {
287+
t.Error("Wrong conversion for DisableBestEffort")
288+
}
285289
}
286290

287291
func TestSetupSeccomp(t *testing.T) {

0 commit comments

Comments
 (0)