Test suite on BSDI BSD/OS

Julien ÉLIE julien at trigofacile.com
Sat Jan 31 19:57:15 UTC 2009


Hi Russ,

>> The second one:
>> * lib/getaddrinfo
>>
>>    test_getaddrinfo("foo.invalid", NULL, NULL, &ai) == EAI_NONAME
>>
>> is false.  There is no error -> code 0 is returned.  Should we check for
>> one of EAI_NONAME and 0?  Or is there something else to fix?
>
> I think there's something else to fix, since that would imply that you're
> getting a valid DNS return for foo.invalid.  (Chances are fairly good that
> it's some sort of problem with the test rather than the code, but that's
> not certain.)

Digging into the contents of the variable, I see that
    host = gethostbyname(nodename);
sets host to "foo.invalid" when nodename is "foo.invalid".

Hmm...

gallifrey% host foo.invalid
foo.invalid has address 208.67.217.132
Host foo.invalid not found: 3(NXDOMAIN)

gallifrey% host 208.67.217.132
132.217.67.208.in-addr.arpa domain name pointer hit-nxdomain.opendns.com.


It seems that the open DNS server used by The Doctor redirects unknown hosts
to their own site.  Thus, breaking the test suite.



As for binding to 127.0.0.1, it does not work:

gallifrey% ./nnrpd -D -b 127.0.0.1 -p 1242

-> Jan 31 12:51:17 gallifrey julien[732]: nnrpd[26638]: can't bind to any addresses

whereas the same command works does the binding on my news server.
Maybe it is a problem of configuration of the network or of the interfaces in BSD/OS?

-- 
Julien ÉLIE

« Hey, I had to let awk be better at *something*... » (Larry Wall)




More information about the inn-workers mailing list