From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1698) id BD883385840F; Sun, 29 Aug 2021 06:53:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD883385840F MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Iain D Sandoe To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-3205] testsuite, Darwin : Skip a test requiring strndup in libc. X-Act-Checkin: gcc X-Git-Author: Iain Sandoe X-Git-Refname: refs/heads/master X-Git-Oldrev: fc3e9f58ec18154027aadc6aa055490acb8c2920 X-Git-Newrev: dc033e0149fd7790b89f816041e87a6ddc22e21c Message-Id: <20210829065350.BD883385840F@sourceware.org> Date: Sun, 29 Aug 2021 06:53:50 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2021 06:53:50 -0000 https://gcc.gnu.org/g:dc033e0149fd7790b89f816041e87a6ddc22e21c commit r12-3205-gdc033e0149fd7790b89f816041e87a6ddc22e21c Author: Iain Sandoe Date: Mon Mar 15 21:40:40 2021 +0000 testsuite, Darwin : Skip a test requiring strndup in libc. Before Darwin11 there is no strndup in libc. This test fails with warning output because of that - so skip it on these versions (since they are not able to use strndup anyway). gcc/testsuite/ChangeLog: * gcc.dg/analyzer/strndup-1.c: Skip for Darwin versions without strndup support in libc. Diff: --- gcc/testsuite/gcc.dg/analyzer/strndup-1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.dg/analyzer/strndup-1.c b/gcc/testsuite/gcc.dg/analyzer/strndup-1.c index 23d9b6070ce..58223533b5d 100644 --- a/gcc/testsuite/gcc.dg/analyzer/strndup-1.c +++ b/gcc/testsuite/gcc.dg/analyzer/strndup-1.c @@ -1,3 +1,4 @@ +/* { dg-skip-if "no strndup in libc" { *-*-darwin[789]* *-*-darwin10* } } */ #include #include