build: kernels_bin update

Correct CompilerInterfaceOclElfCacheTest fixture.

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2025-05-16 13:36:56 +00:00
committed by Compute-Runtime-Automation
parent 2a63853349
commit 936a3d2f31
2 changed files with 7 additions and 2 deletions

View File

@@ -501,12 +501,16 @@ class CompilerInterfaceOclElfCacheTest : public ::testing::Test, public Compiler
using CompilerCacheHelper::processPackedCacheBinary;
void SetUp() override {
hwInfoBackup.reset(new VariableBackup<HardwareInfo>(defaultHwInfo.get()));
std::unique_ptr<CompilerCacheMock> cache(new CompilerCacheMock());
cache->config.enabled = true;
compilerInterface = std::make_unique<MockCompilerInterface>();
bool initRet = compilerInterface->initialize(std::move(cache), true);
ASSERT_TRUE(initRet);
auto compilerProductHelper = CompilerProductHelper::create(defaultHwInfo->platform.eProductFamily);
compilerProductHelper->adjustHwInfoForIgc(*defaultHwInfo);
mockCompilerCache = static_cast<CompilerCacheMock *>(compilerInterface->cache.get());
fclDebugVars.fileName = gEnvironment->fclGetMockFile();
@@ -552,6 +556,7 @@ class CompilerInterfaceOclElfCacheTest : public ::testing::Test, public Compiler
std::unique_ptr<MockCompilerInterface> compilerInterface;
CompilerCacheMock *mockCompilerCache;
std::unique_ptr<VariableBackup<HardwareInfo>> hwInfoBackup;
};
TEST_F(CompilerInterfaceOclElfCacheTest, givenIncorrectBinaryCausingPackDeviceBinaryToReturnEmptyVectorWhenPackAndCacheBinaryThenBinaryIsNotStoredInCache) {
@@ -983,4 +988,4 @@ TEST_F(CompilerCacheHelperMockedWhitelistedIncludesTests, GivenEnabledCacheAndNo
EXPECT_EQ(CachingMode::preProcess, CompilerCacheHelper::getCachingMode(&cache, testCase.second, sourceRef))
<< "Failed for source: " << testCase.first;
}
}
}