compute-runtime/unit_tests/api/cl_create_sub_devices_tests...

26 lines
490 B
Plaintext
Raw Normal View History

/*
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "cl_api_tests.h"
using namespace NEO;
typedef api_tests clCreateSubDevicesTests;
namespace ULT {
TEST_F(clCreateSubDevicesTests, GivenInvalidDeviceWhenCreatingSubDevicesThenInvalidDeviceErrorIsReturned) {
auto retVal = clCreateSubDevices(
nullptr,
nullptr,
0,
nullptr,
nullptr);
EXPECT_EQ(retVal, CL_INVALID_DEVICE);
}
} // namespace ULT