public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] tst-personality: Check for ENOSYS
@ 2023-07-25 17:57 Joe Simmons-Talbott
  2023-07-27  2:16 ` Carlos O'Donell
  0 siblings, 1 reply; 9+ messages in thread
From: Joe Simmons-Talbott @ 2023-07-25 17:57 UTC (permalink / raw)
  To: libc-alpha; +Cc: Joe Simmons-Talbott

Return UNSUPPORTED if personality fails with ENOSYS.
---
 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 5e59627826..4b171ccae3 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 == ENOSYS)
        FAIL_UNSUPPORTED ("personality syscall argument are filtered");
       FAIL_EXIT1 ("personality (%#x) failed: %m", test_persona);
     }
-- 
2.39.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-07-27 17:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-25 17:57 [PATCH] tst-personality: Check for ENOSYS Joe Simmons-Talbott
2023-07-27  2:16 ` Carlos O'Donell
2023-07-27  2:20   ` Xi Ruoyao
2023-07-27 13:02     ` Joe Simmons-Talbott
2023-07-27 13:25       ` Xi Ruoyao
2023-07-27 13:40         ` Adhemerval Zanella Netto
2023-07-27 13:50           ` Xi Ruoyao
2023-07-27 14:20     ` Andreas K. Huettel
2023-07-27 17:26       ` Joe Simmons-Talbott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).