mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 00:10:58 +08:00
Correct CpuInfo test not to require complex file path
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4f2a4d89b1
commit
08ddbe9b41
@@ -6,7 +6,9 @@
|
||||
*/
|
||||
|
||||
#include "shared/source/helpers/file_io.h"
|
||||
#include "shared/source/os_interface/linux/os_inc.h"
|
||||
#include "shared/source/utilities/cpu_info.h"
|
||||
#include "shared/test/common/helpers/variable_backup.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
@@ -16,7 +18,8 @@
|
||||
using namespace NEO;
|
||||
|
||||
TEST(CpuInfo, givenProcCpuinfoFileExistsWhenIsCpuFlagPresentIsCalledThenValidValueIsReturned) {
|
||||
std::string cpuinfoFile = "test_files/linux/proc/cpuinfo";
|
||||
VariableBackup<const char *> pathPrefixBackup(&Os::sysFsProcPathPrefix, "./test_files");
|
||||
std::string cpuinfoFile = "./test_files/cpuinfo";
|
||||
EXPECT_FALSE(fileExists(cpuinfoFile));
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user