From dc033e0149fd7790b89f816041e87a6ddc22e21c Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Mon, 15 Mar 2021 21:40:40 +0000 Subject: [PATCH] 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. --- 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 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 -- 2.47.2