Skip to content

Commit 0fa5201

Browse files
committed
Add check for DisableBestEffort in the unit test
Signed-off-by: Kailun Qin <kailun.qin@intel.com>
1 parent 14101a2 commit 0fa5201

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

libcontainer/specconv/spec_linux_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,10 @@ func TestSetupLandlock(t *testing.T) {
238238
i, expectedPathRulesAccess[i], rule)
239239
}
240240
}
241+
242+
if landlock.DisableBestEffort {
243+
t.Error("Wrong conversion for DisableBestEffort")
244+
}
241245
}
242246

243247
func TestSetupSeccomp(t *testing.T) {

0 commit comments

Comments
 (0)