compute-runtime/shared/test/unit_test/utilities/windows/cpuinfo_tests_windows.cpp

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"));
}