Skip to content

Commit b8d1666

Browse files
Changed to EXPECT_SUCCESS and added queue wait before exiting
1 parent 44010d0 commit b8d1666

File tree

1 file changed

+5
-2
lines changed
  • unified-runtime/test/conformance/exp_command_buffer

1 file changed

+5
-2
lines changed

unified-runtime/test/conformance/exp_command_buffer/enqueue.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ TEST_P(urEnqueueCommandBufferExpTest, EnqueueAndRelease) {
142142
ASSERT_SUCCESS(urEnqueueCommandBufferExp(out_of_order_queue, cmd_buf_handle,
143143
0, nullptr, nullptr));
144144

145-
// Release the command buffer
146-
ASSERT_SUCCESS(urCommandBufferReleaseExp(cmd_buf_handle));
145+
// Release the command buffer without explicitly waiting beforehand
146+
EXPECT_SUCCESS(urCommandBufferReleaseExp(cmd_buf_handle));
147+
148+
// Wait before exiting
149+
ASSERT_SUCCESS(urQueueFinish(out_of_order_queue));
147150
}

0 commit comments

Comments
 (0)