Skip to content

Commit

Permalink
Fix accessor using unsuitable property
Browse files Browse the repository at this point in the history
Accessor shouldn't use buffer::property.
It looks like there is no real need for `properties` to contain any
property, as the test just checks all possible constructors.
  • Loading branch information
KornevNikita committed Oct 16, 2024
1 parent bbe812f commit 92579dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tests/accessor_legacy/accessor_constructors_buffer_utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ class check_all_accessor_constructors_buffer {
using verifier = check_accessor_constructor_buffer<accTag, property_list>;

auto context = util::get_cts_object::context();
property_list properties {
sycl::property::buffer::context_bound(context)};
property_list properties;

{
const auto constructorName = usesHander ?
Expand Down
3 changes: 1 addition & 2 deletions tests/accessor_legacy/accessor_constructors_image_utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ class check_all_accessor_constructors_image {
using verifier = check_accessor_constructor_image<accTag, property_list>;

auto context = util::get_cts_object::context();
property_list properties {
sycl::property::buffer::context_bound(context)};
property_list properties;

const auto constructorName = usesHander ?
"constructor(image, handler, property_list)" :
Expand Down

0 comments on commit 92579dd

Please sign in to comment.