Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaomaosu authored and omarahmed1111 committed Jul 29, 2024
1 parent 55b58b8 commit 759034e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sycl/test-e2e/AddressSanitizer/bad-free/bad-free-minus1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ int main() {
// CHECK-HOST: [[ADDR]] is located inside of Host USM region {{\[0x.*, 0x.*\)}}
// CHECK-SHARED: [[ADDR]] is located inside of Shared USM region {{\[0x.*, 0x.*\)}}
// CHECK-DEVICE: [[ADDR]] is located inside of Device USM region {{\[0x.*, 0x.*\)}}
// CHECK: allocated here:
// CHECK-HOST: in main {{.*bad-free-minus1.cpp:}}[[@LINE-15]]
// CHECK-SHARED: in main {{.*bad-free-minus1.cpp:}}[[@LINE-14]]
// CHECK-DEVICE: in main {{.*bad-free-minus1.cpp:}}[[@LINE-13]]
4 changes: 4 additions & 0 deletions sycl/test-e2e/AddressSanitizer/bad-free/bad-free-plus1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,9 @@ int main() {
// CHECK-HOST: [[ADDR]] is located inside of Host USM region {{\[0x.*, 0x.*\)}}
// CHECK-SHARED: [[ADDR]] is located inside of Shared USM region {{\[0x.*, 0x.*\)}}
// CHECK-DEVICE: [[ADDR]] is located inside of Device USM region {{\[0x.*, 0x.*\)}}
// CHECK: allocated here:
// CHECK-HOST: in main {{.*bad-free-plus1.cpp:}}[[@LINE-13]]
// CHECK-SHARED: in main {{.*bad-free-plus1.cpp:}}[[@LINE-12]]
// CHECK-DEVICE: in main {{.*bad-free-plus1.cpp:}}[[@LINE-11]]
return 0;
}
4 changes: 4 additions & 0 deletions sycl/test-e2e/AddressSanitizer/double-free/double-free.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ int main() {
// CHECK-SHARED: [[ADDR]] is located inside of Shared USM region {{\[0x.*, 0x.*\)}}
// CHECK-DEVICE: [[ADDR]] is located inside of Device USM region {{\[0x.*, 0x.*\)}}
// CHECK: freed here
// CHECH: in main {{.*double-free.cpp:}}[@LINE-33]
// CHECK: previously allocated here
// CHECK-HOST: in main {{.*double-free.cpp:}}[[@LINE-19]]
// CHECK-SHARED: in main {{.*double-free.cpp:}}[[@LINE-18]]
// CHECK-DEVICE: in main {{.*double-free.cpp:}}[[@LINE-17]]
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ int main() {
// CHECK: #0 {{.*}} {{.*quarantine-no-free.cpp}}:[[@LINE-5]]
// CHECK: [[ADDR]] is located inside of Device USM region [{{0x.*}}, {{0x.*}})
// CHECK: allocated here:
// CHECK: in main {{.*quarantine-no-free.cpp}}:[[@LINE-27]]
// CHECK: released here:
// CHECK: in main {{.*quarantine-no-free.cpp}}:[[@LINE-25]]

return 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ int main() {
// CHECK: #0 {{.*}} {{.*use-after-free.cpp:}}[[@LINE-5]]
// CHECK: [[ADDR]] is located inside of Device USM region [{{0x.*}}, {{0x.*}})
// CHECK: allocated here:
// CHECK: in main {{.*use-after-free.cpp:}}[[@LINE-14]]
// CHECK: released here:
// CHECK: in main {{.*use-after-free.cpp:}}[[@LINE-15]]

return 0;
}

0 comments on commit 759034e

Please sign in to comment.