Skip to content

Commit 758c99a

Browse files
committed
!fixup update checks for linux.
1 parent f92088f commit 758c99a

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

compiler-rt/test/tysan/violation-pr45282.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ int main(void) {
1818

1919
// CHECK: TypeSanitizer: type-aliasing-violation on address
2020
// CHECK-NEXT: WRITE of size 8 at {{.+}} with type double accesses an existing object of type float
21-
// CHECK-NEXT: in main violation-pr45282.c:25
21+
// CHECK-NEXT: in main {{.*/?}}violation-pr45282.c:25
2222

2323
// loop of problems
2424
for (j = 2; j <= 4; ++j) {

compiler-rt/test/tysan/violation-pr47137.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// https://github.com/llvm/llvm-project/issues/47137
55
#include <stdio.h>
66
#include <stdlib.h>
7+
#include <stdint.h>
78

89
void f(int m) {
910
int n = (4 * m + 2) / 3;
@@ -23,8 +24,8 @@ void f(int m) {
2324
}
2425

2526
// CHECK: TypeSanitizer: type-aliasing-violation on address
26-
// CHECK-NEXT: READ of size 2 at {{.+}} with type short accesses an existing object of type long long
27-
// CHECK-NEXT: in f violation-pr47137.c:30
27+
// CHECK-NEXT: READ of size 2 at {{.+}} with type short accesses an existing object of type long
28+
// CHECK-NEXT: in f {{.*/?}}violation-pr47137.c:31
2829
for (int i = 0, j = 0; j < 4 * m; i += 4, j += 3) {
2930
for (int k = 0; k < 3; k++) {
3031
((uint16_t *)a)[j + k] = ((uint16_t *)a)[i + k];

compiler-rt/test/tysan/violation-pr62544.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ int main() {
1818

1919
// CHECK: TypeSanitizer: type-aliasing-violation on address
2020
// CHECK-NEXT: WRITE of size 2 at {{.+}} with type short accesses an existing object of type int
21-
// CHECK-NEXT: in main violation-pr62544.c:22
21+
// CHECK-NEXT: in main {{.*/?}}violation-pr62544.c:22
2222
*e = 3;
2323
printf("%d\n", a);
2424
}

compiler-rt/test/tysan/violation-pr62828.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ short *test1(int_v8 *cast_c_array, short_v8 *shuf_c_array1, int *ptr) {
2424

2525
// CHECK: ERROR: TypeSanitizer: type-aliasing-violation on address
2626
// CHECK-NEXT: READ of size 2 at {{.+}} with type short accesses an existing object of type int
27-
// CHECK-NEXT: in test1(int (*) [8], short (*) [8], int*) violation-pr62828.cpp:29
27+
// CHECK-NEXT: in test1(int (*) [8], short (*) [8], int*) {{.*/?}}violation-pr62828.cpp:29
2828
for (int i3 = 0; i3 < 4; ++i3) {
2929
output2[i3] = input2[(i3 * 2)];
3030
}

compiler-rt/test/tysan/violation-pr68655.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ struct S1 {
88
};
99

1010
// CHECK: TypeSanitizer: type-aliasing-violation on address
11-
// CHECK-NEXT: READ of size 4 at {{.+}} with type int accesses an existing object of type long long (in S1 at offset 0)
12-
// CHECK-NEXT: in copyMem(S1*, S1*) violation-pr68655.cpp:19
11+
// CHECK-NEXT: READ of size 4 at {{.+}} with type int accesses an existing object of type long long (in {{.*}}S1 at offset 0)
12+
// CHECK-NEXT: in copyMem(S1*, S1*) {{.*/?}}violation-pr68655.cpp:19
1313

1414
void inline copyMem(S1 *dst, S1 *src) {
1515
unsigned *d = reinterpret_cast<unsigned *>(dst);

compiler-rt/test/tysan/violation-pr86685.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ void foo(int *s, float *f, long n) {
1313

1414
// CHECK: TypeSanitizer: type-aliasing-violation on address
1515
// CHECK-NEXT: WRITE of size 4 at {{.+}} with type int accesses an existing object of type float
16-
// CHECK-NEXT: #0 {{.+}} in foo violation-pr86685.c:17
16+
// CHECK-NEXT: #0 {{.+}} in foo {{.*/?}}violation-pr86685.c:17
1717
*s = 4;
1818
}
1919
}

0 commit comments

Comments
 (0)