Forwarded: https://bugzilla.samba.org/show_bug.cgi?id=15445 From: Simon Josefsson 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 --- 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