Darwin doesn't have pthread_barrier, at least up to Darwin18
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 16 Aug 2018 10:40:04 +0000 (10:40 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Thu, 16 Aug 2018 10:40:04 +0000 (10:40 +0000)
so don't try to do tests with it.

2018-08-16  Iain Sandoe <iain@sandoe.co.uk>

gcc/testsuite/
* c-c++-common/asan/pointer-subtract-3.c: Skip for Darwin.
* c-c++-common/asan/pointer-subtract-4.c: Likewise.
* g++.dg/torture/pr44295.C : Likewise.

From-SVN: r263585

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/asan/pointer-subtract-3.c
gcc/testsuite/c-c++-common/asan/pointer-subtract-4.c
gcc/testsuite/g++.dg/torture/pr44295.C

index 394c6c6f7ec949a640efa11d44be41bc8679e810..f3b2b1dd0f911bde2d33c10d1ffda2f8711f3069 100644 (file)
@@ -1,3 +1,9 @@
+2018-08-16  Iain Sandoe <iain@sandoe.co.uk>
+
+       * c-c++-common/asan/pointer-subtract-3.c: Skip for Darwin.
+       * c-c++-common/asan/pointer-subtract-4.c: Likewise.
+       * g++.dg/torture/pr44295.C : Likewise.
+
 2018-08-16  Iain Sandoe <iain@sandoe.co.uk>
 
        PR testsuite/78544
index 7cae91b699108016da589b84ca634123e5711f50..b434aaac097ff17d8fba8784a52753e9924d3bff 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do run { target pthread_h } } */
+/* { dg-skip-if "no pthread_barrier" { *-*-darwin* } } */
 /* { dg-set-target-env-var ASAN_OPTIONS "detect_invalid_pointer_pairs=2:halt_on_error=1" } */
 /* { dg-options "-fsanitize=address,pointer-subtract" } */
 /* { dg-additional-options "-pthread" { target pthread } } */
index af65c59512b8c3a5615894138935ceb66d6c6a10..4931c2147e79d98795b4777369c82a492fd05f35 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do run { target pthread_h } } */
+/* { dg-skip-if "no pthread_barrier" { *-*-darwin* } } */
 /* { dg-shouldfail "asan" } */
 /* { dg-set-target-env-var ASAN_OPTIONS "detect_invalid_pointer_pairs=2:halt_on_error=1" } */
 /* { dg-options "-fsanitize=address,pointer-subtract" } */
index 7525dc41a78b5f2ebb49fb749f18551a16a76495..a2edf63cd0f0f64ceb7656b8d713154f188844f2 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-additional-options "-Wno-return-type" } */
+/* { dg-skip-if "no pthread_barrier" { *-*-darwin* } } */
 
 extern "C" {
   typedef __SIZE_TYPE__ size_t;