1/* 2 * Copyright (C) 2018-2021 Intel Corporation 3 * 4 * SPDX-License-Identifier: MIT 5 * 6 */ 7 8#include "cl_api_tests.h" 9 10using namespace NEO; 11 12typedef api_tests clEnqueueNativeKernelTests; 13 14namespace ULT { 15 16TEST_F(clEnqueueNativeKernelTests, GivenAnyParametersWhenExecutingNativeKernelThenOutOfHostMemoryErrorIsReturned) { 17 auto retVal = clEnqueueNativeKernel( 18 nullptr, // commandQueue 19 nullptr, // user_func 20 nullptr, // args 21 0u, // cb_args 22 0, // num_mem_objects 23 nullptr, // mem_list 24 nullptr, // args_mem_loc 25 0, // num_events 26 nullptr, //event_list 27 nullptr // event 28 ); 29 EXPECT_EQ(CL_OUT_OF_HOST_MEMORY, retVal); 30} 31} // namespace ULT 32