Skip to content

Commit 4943c7c

Browse files
staniewzkikswiecicki
authored andcommitted
Add missing ASSERT_SUCCESS
1 parent 4e02458 commit 4943c7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/adapters/level_zero/enqueueAlloc.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ TEST_P(urL0EnqueueAllocTest, SuccessDeviceAlloc) {
6565
}
6666

6767
ur_usm_pool_handle_t pool = nullptr;
68-
urUSMPoolCreate(context, nullptr, &pool);
68+
ASSERT_SUCCESS(urUSMPoolCreate(context, nullptr, &pool));
6969

7070
void *ptr = nullptr;
7171
ur_event_handle_t allocEvent = nullptr;
@@ -87,7 +87,7 @@ TEST_P(urL0EnqueueAllocTest, SuccessDeviceRepeatAlloc) {
8787
}
8888

8989
ur_usm_pool_handle_t pool = nullptr;
90-
urUSMPoolCreate(context, nullptr, &pool);
90+
ASSERT_SUCCESS(urUSMPoolCreate(context, nullptr, &pool));
9191

9292
void *ptr = nullptr;
9393
ASSERT_SUCCESS(urEnqueueUSMDeviceAllocExp(queue, pool, ARRAY_SIZE * sizeof(uint32_t),
@@ -117,7 +117,7 @@ TEST_P(urL0EnqueueAllocTest, SuccessSharedAlloc) {
117117
}
118118

119119
ur_usm_pool_handle_t pool = nullptr;
120-
urUSMPoolCreate(context, nullptr, &pool);
120+
ASSERT_SUCCESS(urUSMPoolCreate(context, nullptr, &pool));
121121

122122
void *ptr = nullptr;
123123
ur_event_handle_t allocEvent = nullptr;

0 commit comments

Comments
 (0)