| 1 |
/* |
| 2 |
* Copyright (C) 2021-2023 Intel Corporation |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: MIT |
| 5 |
* |
| 6 |
*/ |
| 7 |
|
| 8 |
#include "shared/source/ail/ail_configuration.h" |
| 9 |
#include "shared/test/common/mocks/mock_execution_environment.h" |
| 10 |
#include "shared/test/common/test_macros/hw_test.h" |
| 11 |
#include "shared/test/common/utilities/destructor_counted.h" |
| 12 |
|
| 13 |
namespace NEO { |
| 14 |
|
| 15 |
using RootDeviceEnvironmentTests = ::testing::Test; |
| 16 |
|
| 17 |
HWTEST2_F(RootDeviceEnvironmentTests, givenRootDeviceEnvironmentWhenAILInitProcessExecutableNameReturnsFailedThenInitAilConfigurationReturnsFail, IsDG1) { |
| 18 |
MockExecutionEnvironment executionEnvironment{}; |
| 19 |
auto rootDeviceEnvironment = static_cast<MockRootDeviceEnvironment *>(executionEnvironment.rootDeviceEnvironments[0].get()); |
| 20 |
rootDeviceEnvironment->ailInitializationResult = false; |
| 21 |
|
| 22 |
EXPECT_EQ(false, rootDeviceEnvironment->initAilConfiguration()); |
| 23 |
} |
| 24 |
} // namespace NEO |