52
52
53
53
VSOCKPORT = 1234
54
54
AIX = platform .system () == "AIX"
55
+ SOLARIS = sys .platform .startswith ("sunos" )
55
56
WSL = "microsoft-standard-WSL" in platform .release ()
56
57
57
58
try :
@@ -3922,6 +3923,10 @@ def testCMSG_SPACE(self):
3922
3923
# Test CMSG_SPACE() with various valid and invalid values,
3923
3924
# checking the assumptions used by sendmsg().
3924
3925
toobig = self .socklen_t_limit - socket .CMSG_SPACE (1 ) + 1
3926
+ if SOLARIS and platform .processor () == "sparc" :
3927
+ # On Solaris SPARC, number of bytes returned by socket.CMSG_SPACE
3928
+ # increases at different lengths; see gh-91214.
3929
+ toobig -= 3
3925
3930
values = list (range (257 )) + list (range (toobig - 257 , toobig ))
3926
3931
3927
3932
last = socket .CMSG_SPACE (0 )
@@ -4068,6 +4073,7 @@ def _testFDPassCMSG_LEN(self):
4068
4073
self .createAndSendFDs (1 )
4069
4074
4070
4075
@unittest .skipIf (is_apple , "skipping, see issue #12958" )
4076
+ @unittest .skipIf (SOLARIS , "skipping, see gh-91214" )
4071
4077
@unittest .skipIf (AIX , "skipping, see issue #22397" )
4072
4078
@requireAttrs (socket , "CMSG_SPACE" )
4073
4079
def testFDPassSeparate (self ):
@@ -4079,6 +4085,7 @@ def testFDPassSeparate(self):
4079
4085
4080
4086
@testFDPassSeparate .client_skip
4081
4087
@unittest .skipIf (is_apple , "skipping, see issue #12958" )
4088
+ @unittest .skipIf (SOLARIS , "skipping, see gh-91214" )
4082
4089
@unittest .skipIf (AIX , "skipping, see issue #22397" )
4083
4090
def _testFDPassSeparate (self ):
4084
4091
fd0 , fd1 = self .newFDs (2 )
@@ -4092,6 +4099,7 @@ def _testFDPassSeparate(self):
4092
4099
len (MSG ))
4093
4100
4094
4101
@unittest .skipIf (is_apple , "skipping, see issue #12958" )
4102
+ @unittest .skipIf (SOLARIS , "skipping, see gh-91214" )
4095
4103
@unittest .skipIf (AIX , "skipping, see issue #22397" )
4096
4104
@requireAttrs (socket , "CMSG_SPACE" )
4097
4105
def testFDPassSeparateMinSpace (self ):
@@ -4106,6 +4114,7 @@ def testFDPassSeparateMinSpace(self):
4106
4114
4107
4115
@testFDPassSeparateMinSpace .client_skip
4108
4116
@unittest .skipIf (is_apple , "skipping, see issue #12958" )
4117
+ @unittest .skipIf (SOLARIS , "skipping, see gh-91214" )
4109
4118
@unittest .skipIf (AIX , "skipping, see issue #22397" )
4110
4119
def _testFDPassSeparateMinSpace (self ):
4111
4120
fd0 , fd1 = self .newFDs (2 )
0 commit comments