Re: [PATCH] test: Fix tst-personality
Adhemerval Zanella Netto <[email protected]>
| Newsgroups | gmane.comp.lib.glibc.alpha |
|---|---|
| Organization | Linaro |
| Message-ID | <[email protected]> |
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/[email protected]/ LGTM, thanks. Reviewed-by: Adhemerval Zanella <[email protected]> > > --- > 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); > }