> > We get consistent test failures on some machines in t/info.t on:
> >
> > ok($tcl->Eval("info hostname"), hostname);
> >
> > where one side returns the 'machine' and the other
> > 'machine.domain.com'. Is there a real reason to even have this test
> > in there? I can understand the 'info nameofexecutable' check, but
> > hostname seems irrelevant for testing the bridge.
>
> I added this code at some point. I just had to test
> something info related, and this just try to check if Tcl and
> Perl manage to agree on what the hostname is. Apparently
> they don't. Who is wrong?
I think they do agree on the hostname - they just disagree on
what "hostname" really means - for Tcl it is fully qualified
(with domainname) and for Perl it's just the name, although Tcl
does doc to say that it's not guaranteed to be the fully
qualified one (it depends on TCP/IP setup). I think its fair
to say they are just different, and if we want to keep it, just
compare up to the first '.' only.
> I'm certainly ok with just removing this test.
and that's of course the easiest.
Jeff
|