net: TestLookupLocalPTR fails on Windows #46882
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Windows
Testing
An issue that has been verified to require only test changes, not just a test failure.
Milestone
go env
The test (added for #29600) is comparing
net.LookupAddr
to the output of the unexportedlookupPTR
function, which shells out to the built-inping
command.The output from
ping
in this case lacks a trailing dot:This looks to me like a bug in the test. The Windows
lookupPTR
helper function adds a trailing dot unconditionally:go/src/net/lookup_windows_test.go
Line 302 in 2ebe77a
However, the real
absDomainName
helper function does not:go/src/net/dnsclient.go
Lines 147 to 149 in 2ebe77a
This behavior has been tweaked many times (see #12189, #12193, #12240, #13564), so it seems problematic for the A/B test not to apply the same transformation function to both names.
CC @alexbrainman @tdabasinskas @neild @ianlancetaylor
The text was updated successfully, but these errors were encountered: