[PATCH] test: Fix tst-personality
Yury Khrustalev <[email protected]>
| Newsgroups | gmane.comp.lib.glibc.alpha |
|---|---|
| Message-ID | <[email protected]> |
Fix check for -1 return on 32-bit hosts. --- Following this discussion: https://inbox.sourceware.org/libc-alpha/[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); } -- 2.47.3