mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
Update CL_QUEUE_SIZE query
When providing invalid queue type, return CL_INVALID_COMMAND_QUEUE error. Change-Id: I4f9412539f708ac3e5f5a367f7d503803863466e Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
45665ae236
commit
79c5502e77
@@ -79,7 +79,7 @@ TEST_P(GetCommandQueueInfoTest, QUEUE_PROPERTIES) {
|
||||
EXPECT_EQ(properties, command_queue_properties_returned);
|
||||
}
|
||||
|
||||
TEST_P(GetCommandQueueInfoTest, QUEUE_SIZE) {
|
||||
TEST_P(GetCommandQueueInfoTest, givenNonDeviceQueueWhenQueryingQueueSizeThenInvalidCommandQueueErrorIsReturned) {
|
||||
cl_uint queueSize = 0;
|
||||
|
||||
auto retVal = pCmdQ->getCommandQueueInfo(
|
||||
@@ -87,7 +87,7 @@ TEST_P(GetCommandQueueInfoTest, QUEUE_SIZE) {
|
||||
sizeof(queueSize),
|
||||
&queueSize,
|
||||
nullptr);
|
||||
EXPECT_EQ(CL_INVALID_VALUE, retVal);
|
||||
EXPECT_EQ(CL_INVALID_COMMAND_QUEUE, retVal);
|
||||
}
|
||||
|
||||
TEST_P(GetCommandQueueInfoTest, QUEUE_DEVICE_DEFAULT) {
|
||||
|
||||
Reference in New Issue
Block a user