Darwin, testsuite - Adjust two tests that fail on newer OS versions.
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 13 Jun 2019 17:15:37 +0000 (17:15 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Thu, 13 Jun 2019 17:15:37 +0000 (17:15 +0000)
Newer OS versions (10.14+) do not provide some of the CRTs that are used
for older ones (e.g. 10.5), and thus link tests that specify targeting
such a revision fail.  We retain the testing of the correct defined OS
version number but switch to compile-only testing for these two tests.

2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.dg/darwin-minversion-1.c: Use compile rather than link/run.
* gcc.dg/darwin-minversion-2.c: Likewise.

From-SVN: r272251

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/darwin-minversion-1.c
gcc/testsuite/gcc.dg/darwin-minversion-2.c

index 071ee8e..7ec2594 100644 (file)
@@ -1,3 +1,8 @@
+2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * gcc.dg/darwin-minversion-1.c: Use compile rather than link/run.
+       * gcc.dg/darwin-minversion-2.c: Likewise.
+
 2019-06-13  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR target/90871
index ee6493a..5f8524f 100644 (file)
@@ -1,6 +1,6 @@
 /* Basic test for -mmacosx-version-min switch on Darwin.  */
 /* { dg-options "-mmacosx-version-min=10.5" } */
-/* { dg-do run { target *-*-darwin* } } */
+/* { dg-do compile { target *-*-darwin* } } */
 
 int
 main ()
index 46fab67..3dbbca6 100644 (file)
@@ -1,6 +1,6 @@
 /* Basic test for -mmacosx-version-min switch on Darwin.  */
 /* { dg-options "-mmacosx-version-min=10.1 -mmacosx-version-min=10.5" } */
-/* { dg-do run { target *-*-darwin* } } */
+/* { dg-do compile { target *-*-darwin* } } */
 
 int
 main ()