2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2019-01-10 20:57:40 +08:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2019-11-15 23:20:45 +08:00
|
|
|
#include "core/command_stream/preemption.h"
|
2019-11-13 17:01:19 +08:00
|
|
|
#include "core/helpers/hw_helper.h"
|
2018-11-08 20:05:46 +08: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 18:39:32 +08:00
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
#include "gtest/gtest.h"
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
TEST(OsInterfaceTest, GivenLinuxWhenare64kbPagesEnabledThenFalse) {
|
|
|
|
EXPECT_FALSE(OSInterface::are64kbPagesEnabled());
|
|
|
|
}
|
2018-04-20 20:44:14 +08:00
|
|
|
|
|
|
|
TEST(OsInterfaceTest, GivenLinuxOsInterfaceWhenDeviceHandleQueriedthenZeroIsReturned) {
|
|
|
|
OSInterface osInterface;
|
|
|
|
EXPECT_EQ(0u, osInterface.getDeviceHandle());
|
|
|
|
}
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|