Skip to content

Commit 856e0cc

Browse files
ULT renaming: SVM memcopy tests
Change-Id: Icf1015f73c47fc951b089a374225808a6e7156f1
1 parent 51d34da commit 856e0cc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

unit_tests/api/cl_enqueue_svm_memcpy_tests.inl

Lines changed: 8 additions & 8 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
*
@@ -16,7 +16,7 @@ typedef api_tests clEnqueueSVMMemcpyTests;
1616

1717
namespace ULT {
1818

19-
TEST_F(clEnqueueSVMMemcpyTests, invalidCommandQueue) {
19+
TEST_F(clEnqueueSVMMemcpyTests, GivenInvalidCommandQueueWhenCopyingSVMMemoryThenInvalidCommandQueueErrorIsReturned) {
2020
auto retVal = clEnqueueSVMMemcpy(
2121
nullptr, // cl_command_queue command_queue
2222
CL_FALSE, // cl_bool blocking_copy
@@ -30,7 +30,7 @@ TEST_F(clEnqueueSVMMemcpyTests, invalidCommandQueue) {
3030
EXPECT_EQ(CL_INVALID_COMMAND_QUEUE, retVal);
3131
}
3232

33-
TEST_F(clEnqueueSVMMemcpyTests, invalidValueDstPtrIsNull) {
33+
TEST_F(clEnqueueSVMMemcpyTests, GivenNullDstPtrWhenCopyingSVMMemoryThenInvalidValueErrorIsReturned) {
3434
const DeviceInfo &devInfo = pPlatform->getDevice(0)->getDeviceInfo();
3535
if (devInfo.svmCapabilities != 0) {
3636
void *pSrcSvm = clSVMAlloc(pContext, CL_MEM_READ_WRITE, 256, 4);
@@ -52,7 +52,7 @@ TEST_F(clEnqueueSVMMemcpyTests, invalidValueDstPtrIsNull) {
5252
}
5353
}
5454

55-
TEST_F(clEnqueueSVMMemcpyTests, invalidValueSrcPtrIsNull) {
55+
TEST_F(clEnqueueSVMMemcpyTests, GivenNullSrcPtrWhenCopyingSVMMemoryThenInvalidValueErrorIsReturned) {
5656
const DeviceInfo &devInfo = pPlatform->getDevice(0)->getDeviceInfo();
5757
if (devInfo.svmCapabilities != 0) {
5858
void *pDstSvm = clSVMAlloc(pContext, CL_MEM_READ_WRITE, 256, 4);
@@ -74,7 +74,7 @@ TEST_F(clEnqueueSVMMemcpyTests, invalidValueSrcPtrIsNull) {
7474
}
7575
}
7676

77-
TEST_F(clEnqueueSVMMemcpyTests, invalidEventWaitListEventWaitListIsNullAndNumEventsInWaitListIsGreaterThanZero) {
77+
TEST_F(clEnqueueSVMMemcpyTests, GivenNonZeroEventsAndNullEventListWhenCopyingSVMMemoryThenInvalidEventWaitListErrorIsReturned) {
7878
auto retVal = clEnqueueSVMMemcpy(
7979
pCommandQueue, // cl_command_queue command_queue
8080
CL_FALSE, // cl_bool blocking_copy
@@ -88,7 +88,7 @@ TEST_F(clEnqueueSVMMemcpyTests, invalidEventWaitListEventWaitListIsNullAndNumEve
8888
EXPECT_EQ(CL_INVALID_EVENT_WAIT_LIST, retVal);
8989
}
9090

91-
TEST_F(clEnqueueSVMMemcpyTests, invalidEventWaitListEventWaitListIsNotNullAndNumEventsInWaitListIsZero) {
91+
TEST_F(clEnqueueSVMMemcpyTests, GivenZeroEventsAndNonNullEventListWhenCopyingSVMMemoryThenInvalidEventWaitListErrorIsReturned) {
9292
UserEvent uEvent(pContext);
9393
cl_event eventWaitList[] = {&uEvent};
9494
auto retVal = clEnqueueSVMMemcpy(
@@ -104,7 +104,7 @@ TEST_F(clEnqueueSVMMemcpyTests, invalidEventWaitListEventWaitListIsNotNullAndNum
104104
EXPECT_EQ(CL_INVALID_EVENT_WAIT_LIST, retVal);
105105
}
106106

107-
TEST_F(clEnqueueSVMMemcpyTests, successSizeIsNonZero) {
107+
TEST_F(clEnqueueSVMMemcpyTests, GivenNonZeroSizeWhenCopyingSVMMemoryThenSuccessIsReturned) {
108108
const DeviceInfo &devInfo = pPlatform->getDevice(0)->getDeviceInfo();
109109
if (devInfo.svmCapabilities != 0) {
110110
void *pDstSvm = clSVMAlloc(pContext, CL_MEM_READ_WRITE, 256, 4);
@@ -129,7 +129,7 @@ TEST_F(clEnqueueSVMMemcpyTests, successSizeIsNonZero) {
129129
}
130130
}
131131

132-
TEST_F(clEnqueueSVMMemcpyTests, successSizeIsZero) {
132+
TEST_F(clEnqueueSVMMemcpyTests, GivenZeroSizeWhenCopyingSVMMemoryThenSuccessIsReturned) {
133133
const DeviceInfo &devInfo = pPlatform->getDevice(0)->getDeviceInfo();
134134
if (devInfo.svmCapabilities != 0) {
135135
void *pDstSvm = clSVMAlloc(pContext, CL_MEM_READ_WRITE, 256, 4);

0 commit comments

Comments
 (0)