Skip to content

Commit

Permalink
[SYCL] Fix the test to not depend on a specific line. (#5092)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Flegontov <[email protected]>
  • Loading branch information
alexanderfle authored Dec 7, 2021
1 parent 80cf149 commit 3fdc06c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sycl/test/basic_tests/single_task_error_message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ int main() {
{
myQueue
.single_task([&](sycl::handler &cgh) {
// expected-error-re@CL/sycl/queue.hpp:691 {{static_assert failed due to requirement '{{.*}}' "sycl::queue.single_task() requires a kernel instead of command group.{{.*}} Use queue.submit() instead"}}
// expected-error-re@CL/sycl/detail/cg_types.hpp:191 {{no matching function for call to object of type '(lambda at {{.*}}single_task_error_message.cpp:{{.*}})'}}
// expected-error-re@CL/sycl/queue.hpp:* {{static_assert failed due to requirement '{{.*}}' "sycl::queue.single_task() requires a kernel instead of command group.{{.*}} Use queue.submit() instead"}}
// expected-error-re@CL/sycl/detail/cg_types.hpp:* {{no matching function for call to object of type '(lambda at {{.*}}single_task_error_message.cpp:{{.*}})'}}
})
.wait();
}
Expand All @@ -26,8 +26,8 @@ int main() {
myQueue
.single_task(e,
[&](sycl::handler &cgh) {
// expected-error-re@CL/sycl/queue.hpp:714 {{static_assert failed due to requirement '{{.*}}' "sycl::queue.single_task() requires a kernel instead of command group.{{.*}} Use queue.submit() instead"}}
// expected-error-re@CL/sycl/detail/cg_types.hpp:191 {{no matching function for call to object of type '(lambda at {{.*}}single_task_error_message.cpp:{{.*}})'}}
// expected-error-re@CL/sycl/queue.hpp:* {{static_assert failed due to requirement '{{.*}}' "sycl::queue.single_task() requires a kernel instead of command group.{{.*}} Use queue.submit() instead"}}
// expected-error-re@CL/sycl/detail/cg_types.hpp:* {{no matching function for call to object of type '(lambda at {{.*}}single_task_error_message.cpp:{{.*}})'}}
})
.wait();
}
Expand All @@ -42,8 +42,8 @@ int main() {
myQueue
.single_task(vector_event,
[&](sycl::handler &cgh) {
// expected-error-re@CL/sycl/queue.hpp:739 {{static_assert failed due to requirement '{{.*}}' "sycl::queue.single_task() requires a kernel instead of command group.{{.*}} Use queue.submit() instead"}}
// expected-error-re@CL/sycl/detail/cg_types.hpp:191 {{no matching function for call to object of type '(lambda at {{.*}}single_task_error_message.cpp:{{.*}})'}}
// expected-error-re@CL/sycl/queue.hpp:* {{static_assert failed due to requirement '{{.*}}' "sycl::queue.single_task() requires a kernel instead of command group.{{.*}} Use queue.submit() instead"}}
// expected-error-re@CL/sycl/detail/cg_types.hpp:* {{no matching function for call to object of type '(lambda at {{.*}}single_task_error_message.cpp:{{.*}})'}}
})
.wait();
}
Expand Down

0 comments on commit 3fdc06c

Please sign in to comment.