[Openmp-commits] [openmp] dedcda4 - [OpenMP][Tests][NFC] Fix libarcher tests for GCC

Joachim Jenke via Openmp-commits openmp-commits at lists.llvm.org
Tue May 23 01:35:06 PDT 2023


Author: Joachim Jenke
Date: 2023-05-23T10:33:09+02:00
New Revision: dedcda45c4fc3bdf8b702e5ee7b943f4c0908ae6

URL: https://github.com/llvm/llvm-project/commit/dedcda45c4fc3bdf8b702e5ee7b943f4c0908ae6
DIFF: https://github.com/llvm/llvm-project/commit/dedcda45c4fc3bdf8b702e5ee7b943f4c0908ae6.diff

LOG: [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

Added: 
    

Modified: 
    openmp/tools/archer/tests/races/critical-unrelated.c
    openmp/tools/archer/tests/races/lock-nested-unrelated.c
    openmp/tools/archer/tests/races/lock-unrelated.c
    openmp/tools/archer/tests/races/parallel-simple.c

Removed: 
    


################################################################################
diff  --git a/openmp/tools/archer/tests/races/critical-unrelated.c b/openmp/tools/archer/tests/races/critical-unrelated.c
index 79a7a2dde9a8c..0f36e28b09f15 100644
--- a/openmp/tools/archer/tests/races/critical-unrelated.c
+++ b/openmp/tools/archer/tests/races/critical-unrelated.c
@@ -38,4 +38,4 @@ int main(int argc, char *argv[]) {
 // CHECK:   Previous write of size 4
 // CHECK-NEXT: #0 {{.*}}critical-unrelated.c:29
 // CHECK: DONE
-// CHECK: ThreadSanitizer: reported {{[1-3]}} warnings
+// CHECK: ThreadSanitizer: reported {{[1-7]}} warnings

diff  --git a/openmp/tools/archer/tests/races/lock-nested-unrelated.c b/openmp/tools/archer/tests/races/lock-nested-unrelated.c
index 913a208c848af..b73ac32ff734b 100644
--- a/openmp/tools/archer/tests/races/lock-nested-unrelated.c
+++ b/openmp/tools/archer/tests/races/lock-nested-unrelated.c
@@ -44,4 +44,4 @@ int main(int argc, char *argv[]) {
 // CHECK:   Previous write of size 4
 // CHECK-NEXT: #0 {{.*}}lock-nested-unrelated.c:33
 // CHECK: DONE
-// CHECK: ThreadSanitizer: reported {{[1-3]}} warnings
+// CHECK: ThreadSanitizer: reported {{[1-7]}} warnings

diff  --git a/openmp/tools/archer/tests/races/lock-unrelated.c b/openmp/tools/archer/tests/races/lock-unrelated.c
index 4245490a703f3..4d9a7d3279e1a 100644
--- a/openmp/tools/archer/tests/races/lock-unrelated.c
+++ b/openmp/tools/archer/tests/races/lock-unrelated.c
@@ -44,4 +44,4 @@ int main(int argc, char *argv[]) {
 // CHECK:   Previous write of size 4
 // CHECK-NEXT: #0 {{.*}}lock-unrelated.c:31
 // CHECK: DONE
-// CHECK: ThreadSanitizer: reported 1 warnings
+// CHECK: ThreadSanitizer: reported {{[1-7]}} warnings

diff  --git a/openmp/tools/archer/tests/races/parallel-simple.c b/openmp/tools/archer/tests/races/parallel-simple.c
index 723fb67c1fe33..a4171b6634a8f 100644
--- a/openmp/tools/archer/tests/races/parallel-simple.c
+++ b/openmp/tools/archer/tests/races/parallel-simple.c
@@ -33,4 +33,4 @@ int main(int argc, char *argv[]) {
 // CHECK:   Previous write of size 4
 // CHECK-NEXT: #0 {{.*}}parallel-simple.c:23
 // CHECK: DONE
-// CHECK: ThreadSanitizer: reported {{[1-3]}} warnings
+// CHECK: ThreadSanitizer: reported {{[1-7]}} warnings


        


More information about the Openmp-commits mailing list