shm_lock_test: add nil check

Fixes: #6164
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg committed 2020-05-11 13:20:32 +02:00
1 parent 18b273b72b
commit 64a12898ad
1 file changed
+1
+1
View File
@@ -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)