Debugger L0 Win: fix broken ULT

givenNonZebinaryFormatWhenGettingDebugInfoThenDebugZebinIsNotCreated

Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
This commit is contained in:
Igor Venevtsev
2022-08-01 13:19:34 +00:00
committed by Compute-Runtime-Automation
parent 64babcf22c
commit 9743e37fde

View File

@@ -3119,6 +3119,7 @@ TEST_F(ModuleWithZebinTest, givenNonZebinaryFormatWhenGettingDebugInfoThenDebugZ
size_t mockProgramSize = sizeof(Elf::ElfFileHeader<Elf::EI_CLASS_64>);
module->translationUnit->unpackedDeviceBinary = std::make_unique<char[]>(mockProgramSize);
module->translationUnit->unpackedDeviceBinarySize = mockProgramSize;
module->isZebinBinary = false;
size_t debugDataSize;
ze_result_t retCode = module->getDebugInfo(&debugDataSize, nullptr);
EXPECT_EQ(debugDataSize, 0u);