public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3205] testsuite, Darwin : Skip a test requiring strndup in libc.
@ 2021-08-29 6:53 Iain D Sandoe
0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2021-08-29 6:53 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:dc033e0149fd7790b89f816041e87a6ddc22e21c
commit r12-3205-gdc033e0149fd7790b89f816041e87a6ddc22e21c
Author: Iain Sandoe <iain@sandoe.co.uk>
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 <string.h>
#include <stdlib.h>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-29 6:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-29 6:53 [gcc r12-3205] testsuite, Darwin : Skip a test requiring strndup in libc Iain D Sandoe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).