Skip to content

Commit 9e8735e

Browse files
Changed to EXPECT_SUCCESS and added queue wait before exiting
1 parent 7c5d41e commit 9e8735e

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
@@ -197,6 +197,9 @@ TEST_P(urEnqueueCommandBufferExpTest, EnqueueAndRelease) {
197197
ASSERT_SUCCESS(urEnqueueCommandBufferExp(out_of_order_queue, cmd_buf_handle,
198198
0, nullptr, nullptr));
199199

200-
// Release the command buffer
201-
ASSERT_SUCCESS(urCommandBufferReleaseExp(cmd_buf_handle));
200+
// Release the command buffer without explicitly waiting beforehand
201+
EXPECT_SUCCESS(urCommandBufferReleaseExp(cmd_buf_handle));
202+
203+
// Wait before exiting
204+
ASSERT_SUCCESS(urQueueFinish(out_of_order_queue));
202205
}

0 commit comments

Comments
 (0)