]> git.ipfire.org Git - thirdparty/gcc.git/commit
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>
Thu, 14 Apr 2022 05:23:19 +0000 (06:23 +0100)
commitb42500db5c466ba62ec416314a299e9c35071e69
treed7682b7b1d82ca5153c1498a171640d8b5c6a393
parent5e6b8b1570352ba2b5e67a5430bceb8f2a360429
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.

(cherry picked from commit dc033e0149fd7790b89f816041e87a6ddc22e21c)
gcc/testsuite/gcc.dg/analyzer/strndup-1.c