|
2016-02-27
| ||
| 11:06 | • Ticket [dee3d66bc7] relax socket.test constraints on localhost == 127.0.0.1 ... artifact: 4e2e0d8a13 user: max | |
| 09:54 | • Ticket [dee3d66bc7]: 3 changes artifact: 1ef2b2d3c1 user: gahr | |
|
2016-02-26
| ||
| 18:49 | • Ticket [dee3d66bc7]: 4 changes artifact: 783a0509b1 user: gahr | |
| 16:58 | • Ticket [dee3d66bc7]: 4 changes artifact: 6fd7fda120 user: oehhar | |
| 14:21 | • Ticket [dee3d66bc7]: 4 changes artifact: 344262d3a8 user: gahr | |
| 14:14 | • Ticket [dee3d66bc7]: 3 changes artifact: fce0ae3e74 user: gahr | |
| 13:09 | • Ticket [dee3d66bc7]: 3 changes artifact: b24d76d6b3 user: gahr | |
| 13:04 | [dee3d66bc7] Remove 'any' af leaf check-in: 3b1d567dea user: gahr tags: gahr-ticket-dee3d66bc7 | |
| 12:38 | • Ticket [dee3d66bc7] relax socket.test constraints on localhost == 127.0.0.1 ... artifact: aff304dcce user: gahr | |
| 12:30 | • Ticket [dee3d66bc7]: 4 changes artifact: 361f6eb4cf user: gahr | |
| 12:28 | [dee3d66bc7] Start relaxing test constraints check-in: 19fab15fd6 user: gahr tags: gahr-ticket-dee3d66bc7 | |
| 12:26 | • New ticket [dee3d66bc7] relax socket.test constraints on localhost == 127.0.0.1<... artifact: e295bb3933 user: gahr | |
relax socket.test constraints on localhost == 127.0.0.1
Opendee3d66bc7185ddc18756ea0d60f641765e06c28Created 11 years agoUpdated 11 years ago
Descriptionhtml2016-02-26 12:26:00
This ticket is to track work on reviewing the socket.test constraints that assume that localhost is 127.0.0.1. Scope is to allow a larger set of tests to be run inside FreeBSD jails, where
% set fd [socket -server {} -myaddr 127.0.0.1 0]
% chan configure $fd -sockname 0
192.168.1.3 dev.ptrcrt.ch 26776
Referenced by2
3b1d567dea[dee3d66bc7] Remove 'any' af check-in2016-02-26 13:04:2519fab15fd6[dee3d66bc7] Start relaxing test constraints check-in2016-02-26 12:28:01
gahr (claiming to be [email protected])html2016-02-26 12:30:04
Work is ongoing in branch gahr-ticket-dee3d66bc7.
gahrhtml2016-02-26 12:38:32
Failing tests I'm tracking down are basically variations on this one:
==== socket_inet-2.3 tcp connection with client interface specified FAILED
==== Contents of test case:
# $x == "ready" at this point
set sock [socket -myaddr $localhost $localhost $listen]
puts $sock hello
flush $sock
lappend x [gets $f]
close $sock
return $x
---- Result was:
ready {hello 192.168.1.3}
---- Result should have been (exact matching):
ready {hello 127.0.0.1}
==== socket_inet-2.3 FAILED
gahrhtml2016-02-26 13:09:25
Before
socket.test: Total 101 Passed 68 Skipped 24 Failed 9Current
socket.test: Total 101 Passed 83 Skipped 18 Failed 0
gahrplain2016-02-26 14:14:43
As non-root:
<pre>
socket.test: Total 101 Passed 87 Skipped 14 Failed 0
Number of tests skipped for each constraint:
1 nonPortable
12 supported_inet6
1 win
</pre>
gahrplain2016-02-26 14:21:14
Harald, I would like to merge this. What do you think? I'll tackle the inet6 issues separately. Thanks!
oehharplain2016-02-26 16:58:46
Dear Pietro, I don't know how my name gets in as 'assignee'. I am sorry, I can not say anything to this ticket expect that it sounds reasonable (as any ticket from your hand). I have sometimes made some tests on CentOS but mainly for Rivet.. Maybee Reinhard Max may comment on it? Sorry, Harald Oehlmann
gahrplain2016-02-26 18:49:15
Harald, I am sorry I picked up the wrong person to look at this. I did so by looking at the most recent committer to the socket.test file. Unfortunately I still miss a less heuristic approach :) Thanks for the hint, I'll get in touch with Rwinhard.
gahr Ticket [dee3d66bc7]: 3 changes
[History diff]2016-02-27 09:54:34
maxplain2016-02-27 11:06:07
Is this behaviour of bind() in FreeBSD documented somewhere? It looks to me like a POSIX violation, if bind() succeeds, but uses a totally different address than requested. Although the Tcl testsuite is meant to find bugs in the Tcl implementation rather than in the underlaying OS, relaxing the tests to accept all kinds of weird platform behaviours might hide actual Tcl bugs on other platforms.
Log in (anonymous is fine) to add a comment.