[v2] tst-personality: Check for ENOSYS
Checks
Context |
Check |
Description |
redhat-pt-bot/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
redhat-pt-bot/TryBot-32bit |
success
|
Build for i686
|
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_glibc_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_glibc_check--master-arm |
success
|
Testing passed
|
Commit Message
Return UNSUPPORTED if personality fails with ENOSYS.
Found in a podman container on Fedora x86_64
---
Changes to v1:
* update commit message to indicate where this test failed.
sysdeps/unix/sysv/linux/tst-personality.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -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);
}