feature: enable cl_cache by default on Windows

Related-To: NEO-8092
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
This commit is contained in:
Fabian Zwolinski
2023-10-03 16:01:50 +00:00
committed by Compute-Runtime-Automation
parent 135b227c9b
commit d7d577ba48
4 changed files with 25 additions and 2 deletions

View File

@@ -981,6 +981,10 @@ TEST_F(CompilerCacheWindowsTest, givenCacheBinaryWhenRenameTempFileBinaryToPrope
EXPECT_EQ(0u, SysCalls::writeFileCalled);
}
TEST(CompilerCacheHelperWindowsTest, whenDefaultCacheEnabledIsCalledThenReturnCorrectValue) {
EXPECT_EQ(1l, NEO::defaultCacheEnabled());
}
TEST(CompilerCacheHelperWindowsTest, givenFindFirstFileASuccessWhenGetFileModificationTimeThenFindCloseIsCalled) {
VariableBackup<HANDLE> findFirstFileAResultBackup(&SysCalls::findFirstFileAResult, reinterpret_cast<HANDLE>(0x1234));
VariableBackup<size_t> findCloseCalledBackup(&SysCalls::findCloseCalled, 0u);