]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, Darwin : Skip a test requiring strndup in libc.
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 15 Mar 2021 21:40:40 +0000 (21:40 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 29 Aug 2021 06:53:18 +0000 (07:53 +0100)
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

index 23d9b6070ceae73887c4c2511b05d041e9ab5368..58223533b5da3f51c88d1d5a6d1f24313b35ce13 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-skip-if "no strndup in libc" { *-*-darwin[789]* *-*-darwin10* } } */
 #include <string.h>
 #include <stdlib.h>