From: Joe Simmons-Talbott <josimmon@redhat.com>
To: libc-alpha@sourceware.org
Cc: Joe Simmons-Talbott <josimmon@redhat.com>
Subject: [PATCH] tst-personality: Check for ENOSYS
Date: Tue, 25 Jul 2023 13:57:14 -0400 [thread overview]
Message-ID: <20230725175714.1727827-1-josimmon@redhat.com> (raw)
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
next reply other threads:[~2023-07-25 17:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-25 17:57 Joe Simmons-Talbott [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230725175714.1727827-1-josimmon@redhat.com \
--to=josimmon@redhat.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).