]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Darwin, testsuite] Adjust two tests that fail on newer OS versions.
authorIain Sandoe <iain@sandoe.co.uk>
Fri, 13 Sep 2019 21:45:28 +0000 (21:45 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Fri, 13 Sep 2019 21:45:28 +0000 (21:45 +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-09-13  Iain Sandoe  <iain@sandoe.co.uk>

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

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

From-SVN: r275705

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

index debbdab9fa015e0539b6f43f4155d5344873aceb..facea208592a60fc6febefeefe3512bb151b348c 100644 (file)
@@ -1,3 +1,11 @@
+2019-09-13  Iain Sandoe  <iain@sandoe.co.uk>
+
+       Backport from mainline.
+       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-09-12  Iain Sandoe  <iain@sandoe.co.uk>
 
        Backport from mainline.
index ee6493a3119bdbf8364020ec26f2ff98f4b849ea..5f8524fbcb85174809e3894817de00575d6f67a6 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 46fab671b953c7637c786cd5f154a83ba58654ad..3dbbca6f4c583a02c173fea8a8f962219e49f806 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 ()