Skip to content

Commit 52a59d4

Browse files
committed
command_queue: fix Klocwork issues
1 parent 39ef452 commit 52a59d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/acl_command_queue_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ MT_TEST(acl_command_queue, create) {
173173
// check if acl_command_queue_is_valid is working properly
174174
{
175175
cl_command_queue fake_cq = acl_alloc_cl_command_queue();
176+
CHECK(fake_cq != 0);
176177
fake_cq->magic = 0xDEADBEEFDEADBEEF;
177178
ACL_LOCKED(CHECK(!acl_command_queue_is_valid(0)));
178179
ACL_LOCKED(CHECK(!acl_command_queue_is_valid(fake_cq)));
@@ -365,6 +366,7 @@ MT_TEST(acl_command_queue, create_with_properties) {
365366
// check if acl_command_queue_is_valid is working properly
366367
{
367368
cl_command_queue fake_cq = acl_alloc_cl_command_queue();
369+
CHECK(fake_cq != 0);
368370
fake_cq->magic = 0xDEADBEEFDEADBEEF;
369371
ACL_LOCKED(CHECK(!acl_command_queue_is_valid(0)));
370372
ACL_LOCKED(CHECK(!acl_command_queue_is_valid(fake_cq)));

0 commit comments

Comments
 (0)