mirror of
https://github.com/containers/podman.git
synced 2026-10-25 03:09:29 -04:00
shm_lock_test: add nil check
Fixes: #6164 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
1 parent
18b273b72b
commit
64a12898ad
1 file changed
+1
@@ -76,6 +76,7 @@ func TestCreateNewSHMBadSizeRoundsUp(t *testing.T) {
|
||||
// Odd number, not a power of 2, should never be a word size on a system
|
||||
lock, err := CreateSHMLock("/test1", 7)
|
||||
assert.NoError(t, err)
|
||||
assert.NotNil(t, lock)
|
||||
|
||||
assert.Equal(t, lock.GetMaxLocks(), BitmapSize)
|
||||
|
||||
|
||||
Reference in new issue
Block a user