2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2020-01-21 15:24:52 +01:00
|
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2019-11-15 16:20:45 +01:00
|
|
|
#include "core/command_stream/preemption.h"
|
2019-11-13 10:01:19 +01:00
|
|
|
#include "core/helpers/hw_helper.h"
|
2020-01-21 15:24:52 +01:00
|
|
|
#include "core/os_interface/linux/os_interface.h"
|
2018-11-08 13:05:46 +01:00
|
|
|
#include "runtime/os_interface/linux/os_context_linux.h"
|
|
|
|
|
#include "unit_tests/os_interface/linux/drm_mock.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2017-12-21 00:45:38 +01:00
|
|
|
#include "gtest/gtest.h"
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
|
TEST(OsInterfaceTest, GivenLinuxWhenare64kbPagesEnabledThenFalse) {
|
|
|
|
|
EXPECT_FALSE(OSInterface::are64kbPagesEnabled());
|
|
|
|
|
}
|
2018-04-20 14:44:14 +02:00
|
|
|
|
|
|
|
|
TEST(OsInterfaceTest, GivenLinuxOsInterfaceWhenDeviceHandleQueriedthenZeroIsReturned) {
|
|
|
|
|
OSInterface osInterface;
|
|
|
|
|
EXPECT_EQ(0u, osInterface.getDeviceHandle());
|
|
|
|
|
}
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|