Skip to content

Commit

Permalink
Add missing ASSERT_SUCCESS
Browse files Browse the repository at this point in the history
  • Loading branch information
staniewzki authored and kswiecicki committed Oct 23, 2024
1 parent 4e02458 commit 4943c7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/adapters/level_zero/enqueueAlloc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ TEST_P(urL0EnqueueAllocTest, SuccessDeviceAlloc) {
}

ur_usm_pool_handle_t pool = nullptr;
urUSMPoolCreate(context, nullptr, &pool);
ASSERT_SUCCESS(urUSMPoolCreate(context, nullptr, &pool));

void *ptr = nullptr;
ur_event_handle_t allocEvent = nullptr;
Expand All @@ -87,7 +87,7 @@ TEST_P(urL0EnqueueAllocTest, SuccessDeviceRepeatAlloc) {
}

ur_usm_pool_handle_t pool = nullptr;
urUSMPoolCreate(context, nullptr, &pool);
ASSERT_SUCCESS(urUSMPoolCreate(context, nullptr, &pool));

void *ptr = nullptr;
ASSERT_SUCCESS(urEnqueueUSMDeviceAllocExp(queue, pool, ARRAY_SIZE * sizeof(uint32_t),
Expand Down Expand Up @@ -117,7 +117,7 @@ TEST_P(urL0EnqueueAllocTest, SuccessSharedAlloc) {
}

ur_usm_pool_handle_t pool = nullptr;
urUSMPoolCreate(context, nullptr, &pool);
ASSERT_SUCCESS(urUSMPoolCreate(context, nullptr, &pool));

void *ptr = nullptr;
ur_event_handle_t allocEvent = nullptr;
Expand Down

0 comments on commit 4943c7c

Please sign in to comment.