Skip to content

Commit 95cfb15

Browse files
ULT renaming: clCreatePerfCountersINTEL tests
Change-Id: I3c32be2317fbdad6522b3f160077732fd0ec55c7 Signed-off-by: Cetnerowski, Adam <adam.cetnerowski@intel.com>
1 parent caa4771 commit 95cfb15

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

unit_tests/api/cl_create_perf_counters_command_queue_tests.inl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct clCreatePerfCountersCommandQueueINTELTests : public api_fixture,
3737

3838
namespace ULT {
3939

40-
TEST_F(clCreatePerfCountersCommandQueueINTELTests, returnsSuccess) {
40+
TEST_F(clCreatePerfCountersCommandQueueINTELTests, GivenCorrectParamatersWhenCreatingPerfCountersCmdQThenCmdQIsCreatedAndPerfCountersAreEnabled) {
4141
cl_command_queue cmdQ = nullptr;
4242
cl_queue_properties properties = CL_QUEUE_PROFILING_ENABLE;
4343
cl_uint configuration = 1;
@@ -56,7 +56,7 @@ TEST_F(clCreatePerfCountersCommandQueueINTELTests, returnsSuccess) {
5656
EXPECT_EQ(CL_SUCCESS, retVal);
5757
}
5858

59-
TEST_F(clCreatePerfCountersCommandQueueINTELTests, negativeNoProfiling) {
59+
TEST_F(clCreatePerfCountersCommandQueueINTELTests, GivenNullPropertiesWhenCreatingPerfCountersCmdQThenInvalidQueuePropertiesErrorIsReturned) {
6060
cl_command_queue cmdQ = nullptr;
6161
cl_queue_properties properties = 0;
6262
cl_uint configuration = 0;
@@ -67,7 +67,7 @@ TEST_F(clCreatePerfCountersCommandQueueINTELTests, negativeNoProfiling) {
6767
ASSERT_EQ(CL_INVALID_QUEUE_PROPERTIES, retVal);
6868
}
6969

70-
TEST_F(clCreatePerfCountersCommandQueueINTELTests, negativeProfilingDeviceQueue) {
70+
TEST_F(clCreatePerfCountersCommandQueueINTELTests, GivenClQueueOnDevicePropertyWhenCreatingPerfCountersCmdQThenInvalidQueuePropertiesErrorIsReturned) {
7171
cl_command_queue cmdQ = nullptr;
7272
cl_queue_properties properties = CL_QUEUE_PROFILING_ENABLE | CL_QUEUE_ON_DEVICE;
7373
cl_uint configuration = 0;
@@ -83,7 +83,7 @@ TEST_F(clCreatePerfCountersCommandQueueINTELTests, negativeProfilingDeviceQueue)
8383
ASSERT_EQ(CL_INVALID_QUEUE_PROPERTIES, retVal);
8484
}
8585

86-
TEST_F(clCreatePerfCountersCommandQueueINTELTests, negativeInvalidCtx) {
86+
TEST_F(clCreatePerfCountersCommandQueueINTELTests, GivenNullContextWhenCreatingPerfCountersCmdQThenInvalidContextErrorIsReturned) {
8787
cl_command_queue cmdQ = nullptr;
8888
cl_queue_properties properties = CL_QUEUE_PROFILING_ENABLE;
8989
cl_uint configuration = 0;
@@ -94,7 +94,7 @@ TEST_F(clCreatePerfCountersCommandQueueINTELTests, negativeInvalidCtx) {
9494
ASSERT_EQ(CL_INVALID_CONTEXT, retVal);
9595
}
9696

97-
TEST_F(clCreatePerfCountersCommandQueueINTELTests, negativeInvalidConfig) {
97+
TEST_F(clCreatePerfCountersCommandQueueINTELTests, GivenMaximumGtdiConfigurationWhenCreatingPerfCountersCmdQThenOutOfResourcesErrorIsReturned) {
9898
cl_command_queue cmdQ = nullptr;
9999
cl_queue_properties properties = CL_QUEUE_PROFILING_ENABLE;
100100
cl_uint configuration = GTDI_CONFIGURATION_SET_MAX;
@@ -105,7 +105,7 @@ TEST_F(clCreatePerfCountersCommandQueueINTELTests, negativeInvalidConfig) {
105105
ASSERT_EQ(CL_OUT_OF_RESOURCES, retVal);
106106
}
107107

108-
TEST_F(clCreatePerfCountersCommandQueueINTELTests, returnsSuccessEvent) {
108+
TEST_F(clCreatePerfCountersCommandQueueINTELTests, GivenCorrectCmdQWhenEventIsCreatedThenPerfCountersAreEnabled) {
109109
cl_command_queue cmdQ = nullptr;
110110
cl_queue_properties properties = CL_QUEUE_PROFILING_ENABLE;
111111
cl_uint configuration = 1;
@@ -124,7 +124,7 @@ TEST_F(clCreatePerfCountersCommandQueueINTELTests, returnsSuccessEvent) {
124124
EXPECT_EQ(CL_SUCCESS, retVal);
125125
}
126126

127-
TEST_F(clCreatePerfCountersCommandQueueINTELTests, negativeNoInstrumentation) {
127+
TEST_F(clCreatePerfCountersCommandQueueINTELTests, GivenInstrumentationEnabledIsFalseWhenCreatingPerfCountersCmdQThenInvalidDeviceErrorIsReturned) {
128128
pInHwInfo->capabilityTable.instrumentationEnabled = false;
129129
cl_command_queue cmdQ = nullptr;
130130
cl_queue_properties properties = CL_QUEUE_PROFILING_ENABLE;
@@ -135,7 +135,7 @@ TEST_F(clCreatePerfCountersCommandQueueINTELTests, negativeNoInstrumentation) {
135135
EXPECT_EQ(CL_INVALID_DEVICE, retVal);
136136
}
137137

138-
TEST_F(clCreatePerfCountersCommandQueueINTELTests, negativeInvalidDevice) {
138+
TEST_F(clCreatePerfCountersCommandQueueINTELTests, GivenInvalidDeviceWhenCreatingPerfCountersCmdQThenInvalidDeviceErrorIsReturned) {
139139
cl_command_queue cmdQ = nullptr;
140140
cl_queue_properties properties = CL_QUEUE_PROFILING_ENABLE;
141141
cl_uint configuration = 0;

0 commit comments

Comments
 (0)