Files
compute-runtime/opencl/test/unit_test/api/cl_flush_tests.inl
lgotszal 3bd4bca911 Copyright header update
Dates corrected in copyright headers to reflect original publication date
(2018 for OpenCL, 2020 for Level Zero).

Signed-off-by: lgotszal <lukasz.gotszald@intel.com>
2021-05-17 20:38:19 +02:00

28 lines
603 B
C++

/*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/source/command_queue/command_queue.h"
#include "cl_api_tests.h"
using namespace NEO;
typedef api_tests clFlushTests;
namespace ULT {
TEST_F(clFlushTests, GivenValidCommandQueueWhenFlushingThenSuccessIsReturned) {
retVal = clFlush(pCommandQueue);
EXPECT_EQ(CL_SUCCESS, retVal);
}
TEST_F(clFlushTests, GivenNullCommandQueueWhenFlushingThenInvalidCommandQueueErrorIsReturned) {
auto retVal = clFlush(nullptr);
EXPECT_EQ(CL_INVALID_COMMAND_QUEUE, retVal);
}
} // namespace ULT