mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 11:26:21 +08:00
build: kernels_bin update
Correct CompilerInterfaceOclElfCacheTest fixture. Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2a63853349
commit
936a3d2f31
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user