Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-91214: Skip tests failing on Solaris #31978

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kulikjak
Copy link
Contributor

@kulikjak kulikjak commented Mar 18, 2022

This PR should take Solaris worker closer to being green.

https://bugs.python.org/issue47058

@bedevere-bot bedevere-bot added the tests Tests in the Lib/test dir label Mar 18, 2022
@kulikjak kulikjak changed the title bpo-47058: Skip tests failing on Solaris worker bpo-47058: Skip tests failing on Solaris Mar 18, 2022
@@ -3394,7 +3395,7 @@ def testCMSG_SPACE(self):
# Test CMSG_SPACE() with various valid and invalid values,
# checking the assumptions used by sendmsg().
toobig = self.socklen_t_limit - socket.CMSG_SPACE(1) + 1
values = list(range(257)) + list(range(toobig - 257, toobig))
values = list(range(257)) + list(range(toobig - 257, toobig - 8))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a 'fix' we are using internally, probably not acceptable (more in the issue tracker).

Copy link
Member

Choose a reason for hiding this comment

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

What are the values of socklen_t_limit and socket.CMSG_SPACE(1) on Solaris?

Copy link
Member

Choose a reason for hiding this comment

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

Well, I think that the simplest way to resolve this is to add Solaris-specific fix:

Suggested change
values = list(range(257)) + list(range(toobig - 257, toobig - 8))
if SOLARIS:
toobig -= 8
values = list(range(257)) + list(range(toobig - 257, toobig))

@serhiy-storchaka serhiy-storchaka changed the title bpo-47058: Skip tests failing on Solaris gh-91214: Skip tests failing on Solaris Feb 23, 2024
@kulikjak kulikjak mannequin mentioned this pull request Apr 10, 2022
@serhiy-storchaka serhiy-storchaka added needs backport to 3.13 bugs and security fixes and removed needs backport to 3.11 only security fixes labels May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants