diff --git a/opencl/test/unit_test/aub_tests/gen12lp/batch_buffer/aub_batch_buffer_tests_gen12lp.cpp b/opencl/test/unit_test/aub_tests/gen12lp/batch_buffer/aub_batch_buffer_tests_gen12lp.cpp index 17b5711f6f..e4fb78b600 100644 --- a/opencl/test/unit_test/aub_tests/gen12lp/batch_buffer/aub_batch_buffer_tests_gen12lp.cpp +++ b/opencl/test/unit_test/aub_tests/gen12lp/batch_buffer/aub_batch_buffer_tests_gen12lp.cpp @@ -35,10 +35,9 @@ GEN12LPTEST_F(Gen12LPAubBatchBufferTests, givenSimpleCCSWithBatchBufferWhenItHas setupAUBWithBatchBuffer(pDevice, aub_stream::ENGINE_CCS, gpuBatchBufferAddr); } -GEN12LPTEST_F(Gen12LPTimestampTests, DISABLED_GivenCommandQueueWithProfilingEnabledWhenKernelIsEnqueuedThenProfilingTimestampsAreNotZero) { +GEN12LPTEST_F(Gen12LPTimestampTests, givenCommandQueueWithProfilingEnabledWhenKernelIsEnqueuedThenProfilingTimestampsAreNotZero) { cl_queue_properties properties[3] = {CL_QUEUE_PROPERTIES, CL_QUEUE_PROFILING_ENABLE, 0}; CommandQueueHw cmdQ(pContext, pClDevice, &properties[0], false); - EXPECT_EQ(aub_stream::ENGINE_CCS, pDevice->getDefaultEngine().osContext->getEngineType()); const uint32_t bufferSize = 4; std::unique_ptr buffer(Buffer::create(pContext, CL_MEM_READ_WRITE, bufferSize, nullptr, retVal)); @@ -54,12 +53,12 @@ GEN12LPTEST_F(Gen12LPTimestampTests, DISABLED_GivenCommandQueueWithProfilingEnab ASSERT_NE(eventObject, nullptr); expectMemory(buffer->getGraphicsAllocation(pClDevice->getRootDeviceIndex())->getUnderlyingBuffer(), writeData, bufferSize); - uint64_t expectedTimestampValues[2] = {0, 0}; + uint64_t notExpectedTimestampValues[2] = {0, 0}; TagNode &hwTimeStamps = *(eventObject->getHwTimeStampNode()); uint64_t timeStampStartAddress = hwTimeStamps.getGpuAddress() + offsetof(HwTimeStamps, ContextStartTS); uint64_t timeStampEndAddress = hwTimeStamps.getGpuAddress() + offsetof(HwTimeStamps, ContextEndTS); - expectMemoryNotEqual(reinterpret_cast(timeStampStartAddress), &expectedTimestampValues[0], sizeof(uint64_t)); - expectMemoryNotEqual(reinterpret_cast(timeStampEndAddress), &expectedTimestampValues[1], sizeof(uint64_t)); + expectMemoryNotEqual(reinterpret_cast(timeStampStartAddress), ¬ExpectedTimestampValues[0], sizeof(uint64_t)); + expectMemoryNotEqual(reinterpret_cast(timeStampEndAddress), ¬ExpectedTimestampValues[1], sizeof(uint64_t)); eventObject->release(); }