Skip to content

Commit fd305a5

Browse files
author
Georgi Mirazchiyski
committed
Fix urEnqueueUSMAdviseTest.NonCoherentDeviceMemorySuccessOrWarning CTS test
1 parent 7fdaed2 commit fd305a5

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/conformance/enqueue/urEnqueueUSMAdvise.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,9 @@ TEST_P(urEnqueueUSMAdviseTest, InvalidSizeTooLarge) {
7070
}
7171

7272
TEST_P(urEnqueueUSMAdviseTest, NonCoherentDeviceMemorySuccessOrWarning) {
73-
ASSERT_EQ_RESULT(static_cast<ur_result_t>(
74-
static_cast<int>(UR_RESULT_SUCCESS) |
75-
static_cast<int>(UR_RESULT_ERROR_ADAPTER_SPECIFIC)),
76-
urEnqueueUSMAdvise(
77-
queue, ptr, allocation_size,
78-
UR_USM_ADVICE_FLAG_SET_NON_COHERENT_MEMORY, nullptr));
73+
ur_result_t result =
74+
urEnqueueUSMAdvise(queue, ptr, allocation_size,
75+
UR_USM_ADVICE_FLAG_SET_NON_COHERENT_MEMORY, nullptr);
76+
ASSERT_EQ(result,
77+
result & (UR_RESULT_SUCCESS | UR_RESULT_ERROR_ADAPTER_SPECIFIC));
7978
}

0 commit comments

Comments
 (0)