curl-library
TFTP test 271
Date: Wed, 22 Mar 2006 13:54:12 +0100
The test for TFTP (271) isn't entirely truthful. Consider:
http://curl.haxx.se/auto/log.cgi?id=20060322083410-6363
..
RUN: TFTP server failed verification
test 271 SKIPPED: failed starting TFTP server
What really happens isn't that it failed to start the TFTP server (it runs
nicely), it's actually Curl that failed:
/tests>../src/curl -m4 -vg "tftp://127.0.0.1:
8997/verifiedserver"
* About to connect() to 127.0.0.1 port 8997
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 8997
* set timeouts for state 0; Total 30, retry 5 maxtry 6
* bind() failed; Invalid argument
* Closing connection #0
curl: (7) bind() failed; Invalid argument
This would be line 568 in lib/tftp.c. Obviously we'll have to fix that,
but the current test doesn't detect that tftp doesn't actually work in
Curl on IRIX at the moment. Not sure how to best fix the test part.
Just for completeness, here's the output from 'par' (like 'strace')
for the bind() call that fails.
lt-curl(12731909): write(2, "set timeouts for state 0; Tota", 53) = 53
lt-curl(12731909): bind(3, {sa_family=AF_UNSPEC, sa_data="\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 128) errno = 22 (Invalid argument)
-Tor
Received on 2006-03-22