2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2019-01-10 13:57:40 +01:00
|
|
|
* Copyright (C) 2017-2019 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
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2018-12-10 10:30:39 +01:00
|
|
|
#include "runtime/command_stream/preemption.h"
|
2019-02-12 17:27:13 +01:00
|
|
|
#include "runtime/helpers/hw_helper.h"
|
2018-11-08 13:05:46 +01:00
|
|
|
#include "runtime/os_interface/linux/os_context_linux.h"
|
|
|
|
|
#include "runtime/os_interface/linux/os_interface.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
|