mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-02-15 22:05:35 -05:00
os: disable tests on HAVE_BROKEN_MSG_CMSG_CLOEXEC
Signed-off-by: Weijia Wang <contact@weijia.wang>
This commit is contained in:
parent
fe70c799e5
commit
dc2be77f63
1 changed files with 4 additions and 0 deletions
|
|
@ -143,10 +143,12 @@ recvmsg(int sockfd, struct msghdr *msg, int flags)
|
|||
{
|
||||
wrapped_calls_recvmsg++;
|
||||
|
||||
#if !(HAVE_BROKEN_MSG_CMSG_CLOEXEC)
|
||||
if (fall_back && (flags & MSG_CMSG_CLOEXEC)) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
return real_recvmsg(sockfd, msg, flags);
|
||||
}
|
||||
|
|
@ -225,7 +227,9 @@ do_os_wrappers_dupfd_cloexec(int n)
|
|||
* Must have 4 calls if falling back, but must also allow
|
||||
* falling back without a forced fallback.
|
||||
*/
|
||||
#if !(HAVE_BROKEN_MSG_CMSG_CLOEXEC)
|
||||
assert(wrapped_calls_fcntl > n);
|
||||
#endif
|
||||
|
||||
exec_fd_leak_check(nr_fds);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue