analyzer/strndup-1.c: skip on *-*-vxworks*

Richard Biener richard.guenther@gmail.com
Tue Mar 29 07:13:50 GMT 2022


On Tue, Mar 29, 2022 at 4:24 AM Alexandre Oliva via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
>
> Add vxworks to the set of operating systems whose C libraries don't
> support strndup.
>
> Tested on affected systems and on x86_64-linux-gnu.  Ok to install?

OK

>
> for  gcc/testsuite/ChangeLog
>
>         * gcc.dg/analyzer/strndup-1.c: Add *-*-vxworks* to no-strndup
>         in libc.
> ---
>  gcc/testsuite/gcc.dg/analyzer/strndup-1.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/gcc/testsuite/gcc.dg/analyzer/strndup-1.c b/gcc/testsuite/gcc.dg/analyzer/strndup-1.c
> index edf494ac28448..8cf7a42bf5361 100644
> --- a/gcc/testsuite/gcc.dg/analyzer/strndup-1.c
> +++ b/gcc/testsuite/gcc.dg/analyzer/strndup-1.c
> @@ -1,4 +1,5 @@
> -/* { dg-skip-if "no strndup in libc" { *-*-darwin[789]* *-*-darwin10* *-*-mingw* } } */
> +/* { dg-skip-if "no strndup in libc" { *-*-darwin[789]* *-*-darwin10* *-*-mingw* *-*-vxworks* } } */
> +
>  #include <string.h>
>  #include <stdlib.h>
>
>
>
> --
> Alexandre Oliva, happy hacker                https://FSFLA.org/blogs/lxo/
>    Free Software Activist                       GNU Toolchain Engineer
> Disinformation flourishes because many people care deeply about injustice
> but very few check the facts.  Ask me about <https://stallmansupport.org>


More information about the Gcc-patches mailing list