summaryrefslogtreecommitdiff
path: root/libpod/lock/shm
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-05-11 13:20:32 +0200
committerValentin Rothberg <rothberg@redhat.com>2020-05-11 13:20:32 +0200
commit64a12898ad5dfa03e5a4e16776dc0a76357ced05 (patch)
tree9b829bac46b8d6d48a5b21b10ed4e258493b17ce /libpod/lock/shm
parent18b273b72ba76d485eb1b4d5df48bff1685953ff (diff)
downloadpodman-64a12898ad5dfa03e5a4e16776dc0a76357ced05.tar.gz
podman-64a12898ad5dfa03e5a4e16776dc0a76357ced05.tar.bz2
podman-64a12898ad5dfa03e5a4e16776dc0a76357ced05.zip
shm_lock_test: add nil check
Fixes: #6164 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'libpod/lock/shm')
-rw-r--r--libpod/lock/shm/shm_lock_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/lock/shm/shm_lock_test.go b/libpod/lock/shm/shm_lock_test.go
index 41a150c59..362821c62 100644
--- a/libpod/lock/shm/shm_lock_test.go
+++ b/libpod/lock/shm/shm_lock_test.go
@@ -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)