Files
compute-runtime/unit_tests/os_interface/linux/os_interface_linux_tests.cpp
Mateusz Hoppe 3c89cfc753 Move os_interface files to core
Change-Id: Ie708a944130884248499091854ebc483953fa828
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-01-22 14:50:51 +01:00

27 lines
687 B
C++

/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "core/command_stream/preemption.h"
#include "core/helpers/hw_helper.h"
#include "core/os_interface/linux/os_interface.h"
#include "runtime/os_interface/linux/os_context_linux.h"
#include "unit_tests/os_interface/linux/drm_mock.h"
#include "gtest/gtest.h"
namespace NEO {
TEST(OsInterfaceTest, GivenLinuxWhenare64kbPagesEnabledThenFalse) {
EXPECT_FALSE(OSInterface::are64kbPagesEnabled());
}
TEST(OsInterfaceTest, GivenLinuxOsInterfaceWhenDeviceHandleQueriedthenZeroIsReturned) {
OSInterface osInterface;
EXPECT_EQ(0u, osInterface.getDeviceHandle());
}
} // namespace NEO