mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Function was deprecated. Removing redundant ULTs. Related-To: NEO-2236 Change-Id: Ie70d8a6a0d19870cfd72c30c83941e11573220f5 Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "unit_tests/fixtures/device_instrumentation_fixture.h"
|
|
#include "unit_tests/os_interface/mock_performance_counters.h"
|
|
|
|
#include "cl_api_tests.h"
|
|
|
|
using namespace NEO;
|
|
|
|
struct clSetPerformanceConfigurationINTELTests : public DeviceInstrumentationFixture,
|
|
public PerformanceCountersDeviceFixture,
|
|
::testing::Test {
|
|
void SetUp() override {
|
|
PerformanceCountersDeviceFixture::SetUp();
|
|
DeviceInstrumentationFixture::SetUp(true);
|
|
}
|
|
void TearDown() override {
|
|
PerformanceCountersDeviceFixture::TearDown();
|
|
}
|
|
};
|
|
namespace ULT {
|
|
|
|
TEST_F(clSetPerformanceConfigurationINTELTests, GivenAnyArgumentsWhenSettingPerformanceConfigurationThenInvalidOperationErrorIsReturned) {
|
|
cl_int ret = CL_OUT_OF_RESOURCES;
|
|
cl_uint offsets[2];
|
|
cl_uint values[2];
|
|
|
|
ret = clSetPerformanceConfigurationINTEL(device.get(), 2, offsets, values);
|
|
EXPECT_EQ(CL_INVALID_OPERATION, ret);
|
|
}
|
|
|
|
} // namespace ULT
|