Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2020-07-25
16:16 • Closed ticket [20dccf1200]: htons-related test fails on Mac OSX Catalina (10.15)... artifact: 411fbb8dbe user: jan.nijtmans
15:56
Fix [20dccf1200]: htons-related test fails on Mac OSX Catalina (10.15) Also, let http-related tests... check-in: 48bfbea889 user: jan.nijtmans tags: core-8-6-branch
2020-07-24
17:44 • Ticket [20dccf1200] htons-related test fails on Mac OSX Catalina (10.15) sta... artifact: 94ec7bf660 user: dgp
2020-07-06
15:59 • New ticket [20dccf1200]. artifact: 3a9d628231 user: dgp

htons-related test fails on Mac OSX Catalina (10.15)

Closed / Fixed20dccf1200e74ddf7da0f58e26c4d9b6d5f92de3Created 6 years agoUpdated 6 years ago
Descriptionplain2020-07-06 15:59:25
==== socket_inet-5.1 byte order problems, socket numbers, htons FAILED
==== Contents of test case:

    if {![catch {socket -server dodo 0x1} msg]} {
	close $msg
        return {htons problem, should be disallowed, are you running as SU?}
    }
    return {couldn't open socket: not owner}

---- Result was:
htons problem, should be disallowed, are you running as SU?
---- Result should have been (exact matching):
couldn't open socket: not owner
==== socket_inet-5.1 FAILED



==== socket_inet-5.3 byte order problems, socket numbers, htons FAILED
==== Contents of test case:

    if {![catch {socket -server dodo 21} msg]} {
	close $msg
	return {htons problem, should be disallowed, are you running as SU?}
    }
    return {couldn't open socket: not owner}

---- Result was:
htons problem, should be disallowed, are you running as SU?
---- Result should have been (exact matching):
couldn't open socket: not owner
==== socket_inet-5.3 FAILED



==== socket_inet6-5.1 byte order problems, socket numbers, htons FAILED
==== Contents of test case:

    if {![catch {socket -server dodo 0x1} msg]} {
	close $msg
        return {htons problem, should be disallowed, are you running as SU?}
    }
    return {couldn't open socket: not owner}

---- Result was:
htons problem, should be disallowed, are you running as SU?
---- Result should have been (exact matching):
couldn't open socket: not owner
==== socket_inet6-5.1 FAILED



==== socket_inet6-5.3 byte order problems, socket numbers, htons FAILED
==== Contents of test case:

    if {![catch {socket -server dodo 21} msg]} {
	close $msg
	return {htons problem, should be disallowed, are you running as SU?}
    }
    return {couldn't open socket: not owner}

---- Result was:
htons problem, should be disallowed, are you running as SU?
---- Result should have been (exact matching):
couldn't open socket: not owner
==== socket_inet6-5.3 FAILED


I am not running with superuser powers when these tests fail.
Referenced by1
  • 48bfbea889Fix [20dccf1200]: htons-related test fails on Mac OSX Catalina (10.15) Also, let http-related tests check if really http 2.9 is present check-in2020-07-25 15:56:10
dgpplain2020-07-24 17:44:25
Discussion here

https://news.ycombinator.com/item?id=18302380

indicates that Mac OSX stopped enforcing restrictions on privileged ports starting with the Mojave release.

Assuming that's correct, these are just tests that need updating do they
do not run where their expectations are not satisfied.
jan.nijtmanswiki2020-07-25 16:16:20

Thanks, @dgp for the pointer to the discussion why this happend. Fixed now on core-8-6-branch and up

Log in (anonymous is fine) to add a comment.