From: Iain Sandoe Date: Thu, 13 Jun 2019 17:15:37 +0000 (+0000) Subject: Darwin, testsuite - Adjust two tests that fail on newer OS versions. X-Git-Tag: upstream/12.2.0~23968 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=342f89653affafb42ba578c876635a9ae4d06810;p=platform%2Fupstream%2Fgcc.git Darwin, testsuite - Adjust two tests that fail on newer OS versions. 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 * gcc.dg/darwin-minversion-1.c: Use compile rather than link/run. * gcc.dg/darwin-minversion-2.c: Likewise. From-SVN: r272251 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 071ee8e..7ec2594 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-06-13 Iain Sandoe + + * gcc.dg/darwin-minversion-1.c: Use compile rather than link/run. + * gcc.dg/darwin-minversion-2.c: Likewise. + 2019-06-13 Paolo Carlini PR target/90871 diff --git a/gcc/testsuite/gcc.dg/darwin-minversion-1.c b/gcc/testsuite/gcc.dg/darwin-minversion-1.c index ee6493a..5f8524f 100644 --- a/gcc/testsuite/gcc.dg/darwin-minversion-1.c +++ b/gcc/testsuite/gcc.dg/darwin-minversion-1.c @@ -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 () diff --git a/gcc/testsuite/gcc.dg/darwin-minversion-2.c b/gcc/testsuite/gcc.dg/darwin-minversion-2.c index 46fab67..3dbbca6 100644 --- a/gcc/testsuite/gcc.dg/darwin-minversion-2.c +++ b/gcc/testsuite/gcc.dg/darwin-minversion-2.c @@ -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 ()