Skip to content

Commit 2e45cea

Browse files
authored
Merge pull request #844 from ChengChen002/SYCL-2020
Catching the right type of exception
2 parents 53238ed + b38a68a commit 2e45cea

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)