mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
refactor: Mock file system in ULTs
Functions: fileExists and loadDataToFile use IO functions from namespace IoFunctions Now tests that use these functions are mocked by default, but some still require access to real files and have been restored the ability to read files. They will be mocked in next PRs. Related-To: NEO-7006 Signed-off-by: Marcel Skierkowski <marcel.skierkowski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
077fe1ab48
commit
5d01677454
@@ -1,10 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2024 Intel Corporation
|
||||
* Copyright (C) 2018-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/helpers/file_io.h"
|
||||
#include "shared/source/helpers/string.h"
|
||||
#include "shared/source/kernel/implicit_args_helper.h"
|
||||
#include "shared/source/memory_manager/allocations_list.h"
|
||||
@@ -55,6 +56,7 @@ class ProgramDataTestBase : public testing::Test,
|
||||
void buildAndDecodeProgramPatchList();
|
||||
|
||||
void SetUp() override {
|
||||
USE_REAL_FILE_SYSTEM();
|
||||
PlatformFixture::setUp();
|
||||
pClDevice = pPlatform->getClDevice(0);
|
||||
rootDeviceIndex = pClDevice->getRootDeviceIndex();
|
||||
|
||||
Reference in New Issue
Block a user