Add finish before command queue is released

Related-To: NEO-5279

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2022-07-19 19:32:15 +00:00
committed by Compute-Runtime-Automation
parent 4d35a76931
commit 50fae92ea2
7 changed files with 32 additions and 2 deletions

View File

@ -16,7 +16,8 @@ using namespace NEO;
TEST(QueueHelpersTest, givenCommandQueueWithoutVirtualEventWhenReleaseQueueIsCalledThenCmdQInternalRefCountIsNotDecremented) {
cl_int retVal = CL_SUCCESS;
MockCommandQueue *cmdQ = new MockCommandQueue;
MockContext context;
MockCommandQueue *cmdQ = new MockCommandQueue(&context, context.getDevice(0), 0, false);
EXPECT_EQ(1, cmdQ->getRefInternalCount());
EXPECT_EQ(1, cmdQ->getRefInternalCount());