Skip to content

Commit b51cc46

Browse files
author
Hugh Delaney
committed
Check that the queue is nullptr
If the call to urQueueCreate fails, then we expect the queue to hold nullptr.
1 parent a1566dd commit b51cc46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/conformance/queue/urQueueCreate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ TEST_F(urQueueCreateTestMultipleDevices, ContextFromWrongDevice) {
140140
ur_queue_handle_t queue = nullptr;
141141
ASSERT_EQ_RESULT(UR_RESULT_ERROR_INVALID_DEVICE,
142142
urQueueCreate(context2, device1, nullptr, &queue));
143-
ASSERT_NE(queue, nullptr);
143+
ASSERT_EQ(queue, nullptr);
144144
}
145145

146146
TEST_P(urQueueCreateTest, InvalidNullHandleContext) {

0 commit comments

Comments
 (0)