Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Sep 27, 2018

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 [email protected]

https://bugs.python.org/issue34521

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 <[email protected]>
@miss-islington
Copy link
Contributor Author

@pablogsal: Status check is done, and it's a failure ❌ .

@pablogsal pablogsal changed the title [3.6] Fix tests in test_socket to use correctly CMSG_LEN (GH-9594) [3.6] bpo-34521: Fix tests in test_socket to use correctly CMSG_LEN (GH-9594) Sep 27, 2018
@bedevere-bot bedevere-bot added skip news tests Tests in the Lib/test dir labels Sep 27, 2018
@miss-islington
Copy link
Contributor Author

@pablogsal: Status check is done, and it's a success ✅ .

2 similar comments
@miss-islington
Copy link
Contributor Author

@pablogsal: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Contributor Author

@pablogsal: Status check is done, and it's a success ✅ .

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good bot.

@miss-islington miss-islington merged commit fe48b6d into python:3.6 Sep 27, 2018
@miss-islington miss-islington deleted the backport-7291108-3.6 branch September 27, 2018 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants