Skip to content

Commit 2580e08

Browse files
committed
[UR] Fixup minor CTS issues
1 parent 04bd987 commit 2580e08

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

test/conformance/event/urEventSetCallback.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,20 +168,21 @@ using urEventSetCallbackNegativeTest = uur::event::urEventTest;
168168
void emptyCallback(ur_event_handle_t hEvent, ur_execution_info_t execStatus,
169169
void *pUserData) {}
170170

171-
TEST_P(urEventSetCallbackNegativeTest, InvalidNullHandle) {
172-
171+
TEST_P(urEventSetCallbackNegativeTest, InvalidNullHandleEvent) {
173172
ASSERT_EQ_RESULT(
174173
urEventSetCallback(
175174
nullptr,
176175
ur_execution_info_t::UR_EXECUTION_INFO_EXECUTION_INFO_QUEUED,
177176
emptyCallback, nullptr),
178177
UR_RESULT_ERROR_INVALID_NULL_HANDLE);
178+
}
179179

180+
TEST_P(urEventSetCallbackNegativeTest, InvalidNullPointerCallback) {
180181
ASSERT_EQ_RESULT(
181182
urEventSetCallback(
182183
event, ur_execution_info_t::UR_EXECUTION_INFO_EXECUTION_INFO_QUEUED,
183184
nullptr, nullptr),
184-
UR_RESULT_ERROR_INVALID_NULL_HANDLE);
185+
UR_RESULT_ERROR_INVALID_NULL_POINTER);
185186
}
186187

187188
TEST_P(urEventSetCallbackNegativeTest, InvalidEnumeration) {

test/conformance/memory/urMemGetInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ TEST_P(urMemGetInfoTest, InvalidNullPointerParamValue) {
6363
size_t mem_size = 0;
6464
ASSERT_EQ_RESULT(urMemGetInfo(buffer, UR_MEM_INFO_SIZE, sizeof(mem_size),
6565
nullptr, nullptr),
66-
UR_RESULT_ERROR_INVALID_SIZE);
66+
UR_RESULT_ERROR_INVALID_NULL_POINTER);
6767
}
6868

6969
TEST_P(urMemGetInfoTest, InvalidNullPointerPropSizeRet) {
7070
ASSERT_EQ_RESULT(
7171
urMemGetInfo(buffer, UR_MEM_INFO_SIZE, 0, nullptr, nullptr),
72-
UR_RESULT_ERROR_INVALID_SIZE);
72+
UR_RESULT_ERROR_INVALID_NULL_POINTER);
7373
}

0 commit comments

Comments
 (0)