mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-13 01:42:56 +08:00
22 lines
484 B
C++
22 lines
484 B
C++
/*
|
|
* Copyright (C) 2018-2025 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "cl_api_tests.h"
|
|
|
|
using namespace NEO;
|
|
|
|
using ClCreatePipeTests = ApiTests;
|
|
|
|
TEST_F(ClCreatePipeTests, WhenCreatingPipeThenInvalidOperationErrorIsReturned) {
|
|
cl_mem_flags flags = CL_MEM_READ_WRITE;
|
|
cl_int retVal = CL_SUCCESS;
|
|
auto pipe = clCreatePipe(pContext, flags, 1, 20, nullptr, &retVal);
|
|
|
|
EXPECT_EQ(nullptr, pipe);
|
|
EXPECT_EQ(CL_INVALID_OPERATION, retVal);
|
|
}
|