Commit fe48b6d
Fix tests in test_socket to use correctly CMSG_LEN (GH-9594)
After some failures in AMD64 FreeBSD CURRENT Debug 3.x buildbots
regarding tests in test_socket that are using
testFDPassSeparateMinSpace(), FreeBDS revision 337423 was pointed
out to be the reason the test started to fail.
A close examination of the manpage for cmsg_space(3) reveals that
the number of file descriptors needs to be taken into account when
using CMSG_LEN().
This commit fixes tests in test_socket to use correctly CMSG_LEN, taking
into account the number of FDs.
(cherry picked from commit 7291108)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>1 parent 3a4aa6a commit fe48b6d
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2858 | 2858 | | |
2859 | 2859 | | |
2860 | 2860 | | |
2861 | | - | |
| 2861 | + | |
| 2862 | + | |
2862 | 2863 | | |
2863 | 2864 | | |
2864 | | - | |
| 2865 | + | |
2865 | 2866 | | |
2866 | 2867 | | |
2867 | 2868 | | |
| |||
0 commit comments