mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Revert "Add finish before command queue is released"
This reverts commit 50fae92ea2
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
1f21d34fd3
commit
b38c750cc4
@ -1531,17 +1531,6 @@ TEST(CommandQueueDestructorTest, whenCommandQueueIsDestroyedThenDestroysTimestam
|
||||
EXPECT_EQ(1, context->getRefInternalCount()); // NOLINT(clang-analyzer-cplusplus.NewDelete)
|
||||
}
|
||||
|
||||
TEST(CommandQueueDestructorTest, GivenCommandQueueWhenDeletedThenFinishIsCalled) {
|
||||
auto context = std::make_unique<MockContext>();
|
||||
EXPECT_EQ(1, context->getRefInternalCount());
|
||||
auto queue = new MockCommandQueue(context.get(), context->getDevice(0), nullptr, false);
|
||||
cl_int ret = 0;
|
||||
bool finishCalled = false;
|
||||
queue->finishCalled = &finishCalled;
|
||||
releaseQueue(queue, ret);
|
||||
EXPECT_TRUE(finishCalled); // NOLINT
|
||||
}
|
||||
|
||||
TEST(CommandQueuePropertiesTests, whenGetEngineIsCalledThenQueueEngineIsReturned) {
|
||||
MockCommandQueue queue;
|
||||
EngineControl engineControl;
|
||||
|
Reference in New Issue
Block a user