Files
compute-runtime/unit_tests/api/cl_create_sub_devices_tests.inl
Cetnerowski, Adam d54e8c84ad ULT renaming: clCreateSubDevice tests
Change-Id: I185edf0d7d12bdbd29e1b0a253e8f6197014f21f
2018-11-28 12:00:23 +01:00

26 lines
492 B
C++

/*
* Copyright (C) 2017-2018 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "cl_api_tests.h"
using namespace OCLRT;
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