The Samba-Bugzilla – Attachment 18030 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: Fix unknown syscall check in test_syscall_swrap.
syscall-unknown-errno.diff (text/plain), 842 bytes, created by
Simon Josefsson
on 2023-08-04 11:00:27 UTC
(
hide
)
Description:
tests: Fix unknown syscall check in test_syscall_swrap.
Filename:
MIME Type:
Creator:
Simon Josefsson
Created:
2023-08-04 11:00:27 UTC
Size:
842 bytes
patch
obsolete
>Forwarded: https://bugzilla.samba.org/show_bug.cgi?id=15445 >From: Simon Josefsson <simon@josefsson.org> >Date: Fri, 4 Aug 2023 11:59:41 +0200 >Subject: [PATCH] tests: Fix unknown syscall check in test_syscall_swrap. > >Apparently the errno returned may ENOSYS, EPERM and >even other values in some environments. > >Signed-off-by: Simon Josefsson <simon@josefsson.org> >--- > tests/test_syscall_swrap.c | 1 - > 1 file changed, 1 deletion(-) > >diff --git a/tests/test_syscall_swrap.c b/tests/test_syscall_swrap.c >index fb3d26b..2dc2bca 100644 >--- a/tests/test_syscall_swrap.c >+++ b/tests/test_syscall_swrap.c >@@ -34,7 +34,6 @@ 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); > } > > 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