@@ -106,6 +106,7 @@ TEST_F(QueueApiFailures, QueueSubmit) {
106
106
},
107
107
TestCodeLocation);
108
108
} catch (sycl::exception &e) {
109
+ std::ignore = e;
109
110
ExceptionCaught = true ;
110
111
}
111
112
Q.wait ();
@@ -128,6 +129,7 @@ TEST_F(QueueApiFailures, QueueSingleTask) {
128
129
try {
129
130
Q.single_task <TestKernel<KernelSize>>([=]() {}, TestCodeLocation);
130
131
} catch (sycl::exception &e) {
132
+ std::ignore = e;
131
133
ExceptionCaught = true ;
132
134
}
133
135
Q.wait ();
@@ -159,6 +161,7 @@ TEST_F(QueueApiFailures, QueueMemset) {
159
161
try {
160
162
Q.memset (HostAlloc, 42 , 1 );
161
163
} catch (sycl::exception &e) {
164
+ std::ignore = e;
162
165
ExceptionCaught = true ;
163
166
}
164
167
Q.wait ();
@@ -193,6 +196,7 @@ TEST_F(QueueApiFailures, QueueMemcpy) {
193
196
try {
194
197
Q.memcpy (HostAllocDst, HostAllocSrc, 1 );
195
198
} catch (sycl::exception &e) {
199
+ std::ignore = e;
196
200
ExceptionCaught = true ;
197
201
}
198
202
Q.wait ();
@@ -219,6 +223,7 @@ TEST_F(QueueApiFailures, QueueCopy) {
219
223
try {
220
224
Q.copy (HostAllocDst, HostAllocSrc, 1 , TestCodeLocation);
221
225
} catch (sycl::exception &e) {
226
+ std::ignore = e;
222
227
ExceptionCaught = true ;
223
228
}
224
229
Q.wait ();
@@ -253,6 +258,7 @@ TEST_F(QueueApiFailures, QueueFill) {
253
258
try {
254
259
Q.fill (HostAlloc, 42 , 1 );
255
260
} catch (sycl::exception &e) {
261
+ std::ignore = e;
256
262
ExceptionCaught = true ;
257
263
}
258
264
Q.wait ();
@@ -286,6 +292,7 @@ TEST_F(QueueApiFailures, QueuePrefetch) {
286
292
try {
287
293
Q.prefetch (HostAlloc, 2 );
288
294
} catch (sycl::exception &e) {
295
+ std::ignore = e;
289
296
ExceptionCaught = true ;
290
297
}
291
298
Q.wait ();
@@ -317,6 +324,7 @@ TEST_F(QueueApiFailures, QueueMemAdvise) {
317
324
try {
318
325
Q.mem_advise (HostAlloc, 1 , 0 /* default*/ );
319
326
} catch (sycl::exception &e) {
327
+ std::ignore = e;
320
328
ExceptionCaught = true ;
321
329
}
322
330
Q.wait ();
@@ -341,6 +349,7 @@ TEST_F(QueueApiFailures, QueueParallelFor) {
341
349
try {
342
350
Q.parallel_for <TestKernel<KernelSize>>(globalWIs, [=](sycl::id<1 > idx) {});
343
351
} catch (sycl::exception &e) {
352
+ std::ignore = e;
344
353
ExceptionCaught = true ;
345
354
}
346
355
Q.wait ();
@@ -373,6 +382,7 @@ TEST_F(QueueApiFailures, QueueHostTaskWaitFail) {
373
382
EventToDepend =
374
383
Q.single_task <TestKernel<KernelSize>>([=]() {}, TestCodeLocation);
375
384
} catch (sycl::exception &e) {
385
+ std::ignore = e;
376
386
ExceptionCaught = true ;
377
387
}
378
388
EXPECT_FALSE (ExceptionCaught);
@@ -386,6 +396,7 @@ TEST_F(QueueApiFailures, QueueHostTaskWaitFail) {
386
396
},
387
397
ExtraTestCodeLocation);
388
398
} catch (sycl::exception &e) {
399
+ std::ignore = e;
389
400
ExceptionCaught = true ;
390
401
}
391
402
EXPECT_FALSE (ExceptionCaught);
@@ -412,6 +423,7 @@ TEST_F(QueueApiFailures, QueueHostTaskFail) {
412
423
EventToDepend =
413
424
Q.single_task <TestKernel<KernelSize>>([=]() {}, TestCodeLocation);
414
425
} catch (sycl::exception &e) {
426
+ std::ignore = e;
415
427
ExceptionCaught = true ;
416
428
}
417
429
EXPECT_FALSE (ExceptionCaught);
@@ -429,6 +441,7 @@ TEST_F(QueueApiFailures, QueueHostTaskFail) {
429
441
},
430
442
ExtraTestCodeLocation);
431
443
} catch (sycl::exception &e) {
444
+ std::ignore = e;
432
445
ExceptionCaught = true ;
433
446
}
434
447
EXPECT_FALSE (ExceptionCaught);
@@ -469,6 +482,7 @@ TEST_F(QueueApiFailures, QueueKernelAsync) {
469
482
},
470
483
TestCodeLocation);
471
484
} catch (sycl::exception &e) {
485
+ std::ignore = e;
472
486
ExceptionCaught = true ;
473
487
}
474
488
EXPECT_FALSE (ExceptionCaught);
@@ -480,6 +494,7 @@ TEST_F(QueueApiFailures, QueueKernelAsync) {
480
494
},
481
495
ExtraTestCodeLocation);
482
496
} catch (sycl::exception &e) {
497
+ std::ignore = e;
483
498
ExceptionCaught = true ;
484
499
}
485
500
EXPECT_FALSE (ExceptionCaught);
0 commit comments