@@ -77,23 +77,23 @@ TEST_P(urQueueCreateTest, InvalidValueProperties) {
77
77
}
78
78
79
79
TEST_P (urQueueCreateTest, InvalidQueueProperties) {
80
- ur_queue_properties_t props = {
81
- /* .stype =*/ UR_STRUCTURE_TYPE_QUEUE_PROPERTIES,
82
- /* .pNext =*/ nullptr ,
83
- /* .flags =*/ UR_QUEUE_FLAG_PRIORITY_HIGH | UR_QUEUE_FLAG_PRIORITY_LOW,
84
- };
85
- // It should be an error to specify both low/high priorities
86
- {
87
- ur_queue_handle_t queue = nullptr ;
88
- ASSERT_EQ_RESULT (UR_RESULT_ERROR_INVALID_QUEUE_PROPERTIES,
89
- urQueueCreate (context, device, &props, &queue));
90
- }
91
- // It should be an error to specify both batched and immediate submission
92
- {
93
- ur_queue_handle_t queue = nullptr ;
94
- props.flags =
95
- UR_QUEUE_FLAG_SUBMISSION_BATCHED | UR_QUEUE_FLAG_SUBMISSION_IMMEDIATE;
96
- ASSERT_EQ_RESULT (UR_RESULT_ERROR_INVALID_QUEUE_PROPERTIES,
97
- urQueueCreate (context, device, &props, &queue));
98
- }
80
+ ur_queue_properties_t props = {
81
+ /* .stype =*/ UR_STRUCTURE_TYPE_QUEUE_PROPERTIES,
82
+ /* .pNext =*/ nullptr ,
83
+ /* .flags =*/ UR_QUEUE_FLAG_PRIORITY_HIGH | UR_QUEUE_FLAG_PRIORITY_LOW,
84
+ };
85
+ // It should be an error to specify both low/high priorities
86
+ {
87
+ ur_queue_handle_t queue = nullptr ;
88
+ ASSERT_EQ_RESULT (UR_RESULT_ERROR_INVALID_QUEUE_PROPERTIES,
89
+ urQueueCreate (context, device, &props, &queue));
90
+ }
91
+ // It should be an error to specify both batched and immediate submission
92
+ {
93
+ ur_queue_handle_t queue = nullptr ;
94
+ props.flags = UR_QUEUE_FLAG_SUBMISSION_BATCHED |
95
+ UR_QUEUE_FLAG_SUBMISSION_IMMEDIATE;
96
+ ASSERT_EQ_RESULT (UR_RESULT_ERROR_INVALID_QUEUE_PROPERTIES,
97
+ urQueueCreate (context, device, &props, &queue));
98
+ }
99
99
}
0 commit comments