From: Iain Sandoe Date: Mon, 15 Mar 2021 21:40:40 +0000 (+0000) Subject: testsuite, Darwin : Skip a test requiring strndup in libc. X-Git-Tag: basepoints/gcc-13~5108 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc033e0149fd7790b89f816041e87a6ddc22e21c;p=thirdparty%2Fgcc.git 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 --git a/gcc/testsuite/gcc.dg/analyzer/strndup-1.c b/gcc/testsuite/gcc.dg/analyzer/strndup-1.c index 23d9b6070cea..58223533b5da 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