Skip to content

Commit dedcda4

Browse files
committed
[OpenMP][Tests][NFC] Fix libarcher tests for GCC
TSan in GCC filters duplicates less aggressively. With 8 threads we can expect reports for up to 7 pairs of data race in some tests. Tests pass now with GCC 10, 11, 12
1 parent 910af0e commit dedcda4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

openmp/tools/archer/tests/races/critical-unrelated.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ int main(int argc, char *argv[]) {
3838
// CHECK: Previous write of size 4
3939
// CHECK-NEXT: #0 {{.*}}critical-unrelated.c:29
4040
// CHECK: DONE
41-
// CHECK: ThreadSanitizer: reported {{[1-3]}} warnings
41+
// CHECK: ThreadSanitizer: reported {{[1-7]}} warnings

openmp/tools/archer/tests/races/lock-nested-unrelated.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ int main(int argc, char *argv[]) {
4444
// CHECK: Previous write of size 4
4545
// CHECK-NEXT: #0 {{.*}}lock-nested-unrelated.c:33
4646
// CHECK: DONE
47-
// CHECK: ThreadSanitizer: reported {{[1-3]}} warnings
47+
// CHECK: ThreadSanitizer: reported {{[1-7]}} warnings

openmp/tools/archer/tests/races/lock-unrelated.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ int main(int argc, char *argv[]) {
4444
// CHECK: Previous write of size 4
4545
// CHECK-NEXT: #0 {{.*}}lock-unrelated.c:31
4646
// CHECK: DONE
47-
// CHECK: ThreadSanitizer: reported 1 warnings
47+
// CHECK: ThreadSanitizer: reported {{[1-7]}} warnings

openmp/tools/archer/tests/races/parallel-simple.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ int main(int argc, char *argv[]) {
3333
// CHECK: Previous write of size 4
3434
// CHECK-NEXT: #0 {{.*}}parallel-simple.c:23
3535
// CHECK: DONE
36-
// CHECK: ThreadSanitizer: reported {{[1-3]}} warnings
36+
// CHECK: ThreadSanitizer: reported {{[1-7]}} warnings

0 commit comments

Comments
 (0)