Skip to content

Commit f288726

Browse files
committed
[SYCL-CTS] Catching the right type of exception
1 parent 9691bc0 commit f288726

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/kernel_args/kernel_args.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class TEST_NAME : public util::test_base {
128128
FAIL(log, "outer_struct capture error");
129129
}
130130
}
131-
} catch (const sycl::feature_not_supported &fnse) {
131+
} catch (const sycl::exception &e) {
132132
if (!my_queue.get_device()
133133
.get_info<sycl::info::device::image_support>()) {
134134
SKIP("device does not support images");

0 commit comments

Comments
 (0)