Skip to content

Commit c9f75d3

Browse files
ULT renaming: Read buffer tests
Change-Id: I41b9d97bf3913236121c4e0c0705c465a59f65eb
1 parent ea8aa29 commit c9f75d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

unit_tests/api/cl_enqueue_read_buffer_tests.inl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2017-2018 Intel Corporation
2+
* Copyright (C) 2017-2019 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -17,7 +17,7 @@ typedef api_tests clEnqueueReadBufferTests;
1717

1818
namespace ULT {
1919

20-
TEST_F(clEnqueueReadBufferTests, NullCommandQueue_returnsError) {
20+
TEST_F(clEnqueueReadBufferTests, GivenNullCommandQueueWhenReadingBufferThenInvalidCommandQueueErrorIsReturned) {
2121
auto data = 1;
2222
auto retVal = clEnqueueReadBuffer(
2323
nullptr,
@@ -69,7 +69,7 @@ class EnqueueReadBufferFlagsTest : public api_fixture,
6969

7070
typedef EnqueueReadBufferFlagsTest EnqueueReadReadBufferTests;
7171

72-
TEST_P(EnqueueReadReadBufferTests, invalidFlags) {
72+
TEST_P(EnqueueReadReadBufferTests, GivenNoReadFlagsWhenReadingBufferThenInvalidOperationErrorIsReturned) {
7373
auto data = 1;
7474
cl_event eventReturned = nullptr;
7575
retVal = clEnqueueReadBuffer(
@@ -131,7 +131,7 @@ class EnqueueReadBufferTest : public api_tests {
131131
api_tests::TearDown();
132132
}
133133
};
134-
TEST_F(EnqueueReadBufferTest, svmPtr) {
134+
TEST_F(EnqueueReadBufferTest, GivenSvmPtrWhenReadingBufferThenSuccessIsReturned) {
135135
const DeviceInfo &devInfo = pPlatform->getDevice(0)->getDeviceInfo();
136136
if (devInfo.svmCapabilities != 0) {
137137
auto data = clSVMAlloc(pContext, CL_MEM_READ_WRITE, bufferSize, 64);

0 commit comments

Comments
 (0)