test: Correct compiler cache fixture

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2025-05-29 15:49:06 +00:00
committed by Compute-Runtime-Automation
parent 6fe910c615
commit 047be0a313
2 changed files with 12 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2024 Intel Corporation
* Copyright (C) 2018-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -63,7 +63,8 @@ HANDLE createFileAResults[createFileAResultsCount] = {nullptr, nullptr, nullptr,
size_t deleteFileACalled = 0u;
const size_t deleteFilesCount = 4;
std::string deleteFiles[deleteFilesCount];
constexpr size_t deleteFilesMaxLength = 256;
char deleteFiles[deleteFilesCount][deleteFilesMaxLength] = {{0}};
HRESULT shGetKnownFolderPathResult = 0;
extern const size_t shGetKnownFolderSetPathSize = 50;
@@ -204,7 +205,7 @@ HANDLE createFileA(LPCSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode,
BOOL deleteFileA(LPCSTR lpFileName) {
if (deleteFileACalled < deleteFilesCount) {
deleteFiles[deleteFileACalled] = std::string(lpFileName);
memcpy_s(deleteFiles[deleteFileACalled], deleteFilesMaxLength, lpFileName, strlen(lpFileName));
}
deleteFileACalled++;
return TRUE;
@@ -475,4 +476,4 @@ unsigned int readEnablePreemptionRegKey() {
return 1;
}
} // namespace NEO
} // namespace NEO