Skip to content

Commit

Permalink
sycl-in-tree: Allow different patch in usm testcases (intel#10336)
Browse files Browse the repository at this point in the history
We might get different path (eg: without /) in different test env
Remove the "/" to avoid noise.
  • Loading branch information
jsji authored Jul 24, 2023
1 parent f4e0d31 commit 906c25b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sycl/test-e2e/Tracing/usm/queue_copy_released_pointer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ int main() {

try {
// CHECK: [USM] Function uses unknown USM pointer (could be already released or not allocated as USM) as destination memory block
// CHECK: | memcpy location: function main at {{.*}}/queue_copy_released_pointer.cpp:[[# @LINE + 1 ]]
// CHECK: | memcpy location: function main at {{.*}}queue_copy_released_pointer.cpp:[[# @LINE + 1 ]]
Q.copy(AllocSrc, AllocDst, 1);
Q.wait();
} catch (...) {
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/Tracing/usm/queue_single_task_nullptr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int main() {
unsigned int *AllocSrc = nullptr;
try {
// CHECK: [USM] Function uses nullptr as kernel parameter with index = 0.
// CHECK: | kernel location: function main at {{.*}}/queue_single_task_nullptr.cpp:[[# @LINE + 1 ]]
// CHECK: | kernel location: function main at {{.*}}queue_single_task_nullptr.cpp:[[# @LINE + 1 ]]
Q.single_task([=]() {
if (AllocSrc == nullptr)
sycl::ext::oneapi::experimental::printf("nullptr");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ int main() {

try {
// CHECK: [USM] Function uses unknown USM pointer (could be already released or not allocated as USM) as kernel parameter with index = 0.
// CHECK: | kernel location: function main at {{.*}}/queue_single_task_released_pointer.cpp:[[# @LINE + 1 ]]
// CHECK: | kernel location: function main at {{.*}}queue_single_task_released_pointer.cpp:[[# @LINE + 1 ]]
Q.single_task([=]() { *AllocSrc = 13; });
Q.wait();
} catch (...) {
Expand Down

0 comments on commit 906c25b

Please sign in to comment.