Skip to content

Commit

Permalink
Merge pull request #844 from ChengChen002/SYCL-2020
Browse files Browse the repository at this point in the history
Catching the right type of exception
  • Loading branch information
bader authored Jan 11, 2024
2 parents 53238ed + b38a68a commit 2e45cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/kernel_args/kernel_args.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class TEST_NAME : public util::test_base {
FAIL(log, "outer_struct capture error");
}
}
} catch (const sycl::feature_not_supported &fnse) {
} catch (const sycl::exception& e) {
if (!my_queue.get_device()
.get_info<sycl::info::device::image_support>()) {
SKIP("device does not support images");
Expand Down

0 comments on commit 2e45cea

Please sign in to comment.