The Samba-Bugzilla – Attachment 18029 Details for
Bug 15445
uid_wrapper: test_syscall_swrap.c fails in virtualized environments
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
tests: Handle unknown syscall call errno.
syscall-unknown-errno.diff (text/plain), 934 bytes, created by
Simon Josefsson
on 2023-08-04 10:21:45 UTC
(
hide
)
Description:
tests: Handle unknown syscall call errno.
Filename:
MIME Type:
Creator:
Simon Josefsson
Created:
2023-08-04 10:21:45 UTC
Size:
934 bytes
patch
obsolete
>From 0eea4e7cb266b1ee5098a0b6c7316055ddeeaef5 Mon Sep 17 00:00:00 2001 >From: Simon Josefsson <simon@josefsson.org> >Date: Fri, 4 Aug 2023 11:59:41 +0200 >Subject: [PATCH] tests: Handle unknown syscall call errno. > >Apparently ENOSYS is returned for unknown syscalls >on real machines and EPERM may be returned inside >virtual machines. > >Signed-off-by: Simon Josefsson <simon@josefsson.org> >--- > tests/test_syscall_swrap.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/tests/test_syscall_swrap.c b/tests/test_syscall_swrap.c >index fb3d26b..367f69b 100644 >--- a/tests/test_syscall_swrap.c >+++ b/tests/test_syscall_swrap.c >@@ -34,7 +34,7 @@ static void test_uwrap_syscall_swrap(void **state) > rc = syscall(__FAKE_SOCKET_WRAPPER_SYSCALL_NO+1); > signal(SIGSYS, SIG_DFL); > assert_int_equal(rc, -1); >- assert_int_equal(errno, ENOSYS); >+ assert_true (errno == ENOSYS || errno == EPERM); > } > > int main(void) { >-- >2.34.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 15445
: 18029 |
18030