Files
compute-runtime/shared/test/unit_test/utilities/windows/cpuinfo_tests_windows.cpp
Igor Venevtsev 92f067b9aa Add CpuInfo::isCpuFlagPresent() method
Related-To: NEO-5276

Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2021-01-05 14:23:08 +01:00

21 lines
453 B
C++

/*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/utilities/cpu_info.h"
#include "gtest/gtest.h"
using namespace NEO;
TEST(CpuInfo, givenIsCpuFlagPresentCalledThenFalseIsReturned) {
CpuInfo testCpuInfo;
EXPECT_FALSE(testCpuInfo.isCpuFlagPresent("fpu"));
EXPECT_FALSE(testCpuInfo.isCpuFlagPresent("vme"));
EXPECT_FALSE(testCpuInfo.isCpuFlagPresent("nonExistingCpuFlag"));
}