[PATCH] test: Fix tst-personality

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Tue Sep 1 13:14:34 GMT 2026



On 01/09/26 06:46, Yury Khrustalev wrote:
> Fix check for -1 return on 32-bit hosts.
> 
> ---
> Following this discussion:
> https://inbox.sourceware.org/libc-alpha/apAu1DvHUcLD7Wqy@arm.com/

LGTM, thanks.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

> 
> ---
>  sysdeps/unix/sysv/linux/tst-personality.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sysdeps/unix/sysv/linux/tst-personality.c b/sysdeps/unix/sysv/linux/tst-personality.c
> index d50c3b5ec3..eab07e89e6 100644
> --- a/sysdeps/unix/sysv/linux/tst-personality.c
> +++ b/sysdeps/unix/sysv/linux/tst-personality.c
> @@ -35,7 +35,7 @@ do_test (void)
>      {
>        /* The syscall argument might be filtered by kernel, so the
>          test can not check for the bug issue.  */
> -      if (errno == EPERM)
> +      if (errno == EPERM || errno == 0xdefaced)
>         FAIL_UNSUPPORTED ("personality syscall argument are filtered");
>        FAIL_EXIT1 ("personality (%#x) failed: %m", test_persona);
>      }



More information about the Libc-alpha mailing list