diff --git a/level_zero/core/test/unit_tests/sources/debugger/test_module_with_debug.cpp b/level_zero/core/test/unit_tests/sources/debugger/test_module_with_debug.cpp index 66cb7a0469..90f7ed013c 100644 --- a/level_zero/core/test/unit_tests/sources/debugger/test_module_with_debug.cpp +++ b/level_zero/core/test/unit_tests/sources/debugger/test_module_with_debug.cpp @@ -61,12 +61,14 @@ TEST_F(KernelInitializeTest, givenDebuggingEnabledWhenKernelsAreInitializedThenA KernelImmutableData kernelImmutableData(device); kernelImmutableData.setIsaPerKernelAllocation(this->allocateIsaMemory(kernelInfo.heapInfo.kernelHeapSize, false)); + auto isa = kernelImmutableData.getIsaGraphicsAllocation()->getUnderlyingBuffer(); + + *reinterpret_cast(isa) = 0; memoryOperationsHandler->makeResidentCalledCount = 0; kernelImmutableData.initialize(&kernelInfo, device, 0, nullptr, nullptr, false); EXPECT_EQ(0, memoryOperationsHandler->makeResidentCalledCount); - auto isa = kernelImmutableData.getIsaGraphicsAllocation()->getUnderlyingBuffer(); EXPECT_NE(0, memcmp(isa, &kernelHeap, sizeof(kernelHeap))); };