Skip to content

Commit 36d695b

Browse files
kailun-qinZheaoli
authored andcommitted
Add check for DisableBestEffort in the unit test
Signed-off-by: Kailun Qin <[email protected]>
1 parent 22c5998 commit 36d695b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcontainer/specconv/spec_linux_test.go

+4
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)