mirror of
https://github.com/golang/go.git
synced 2025-05-18 22:04:38 +00:00
net: skip TestReadLine if /etc/services does not exist
Fixes #65905 Change-Id: I42326d3b743e80d5226ea374eca5c9edaef4dd4d Reviewed-on: https://go-review.googlesource.com/c/go/+/566535 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Commit-Queue: Ian Lance Taylor <iant@google.com> Reviewed-by: Damien Neil <dneil@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
e803857813
commit
ef84d62cfc
@ -22,7 +22,8 @@ func TestReadLine(t *testing.T) {
|
||||
|
||||
fd, err := os.Open(filename)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
// The file is missing even on some Unix systems.
|
||||
t.Skipf("skipping because failed to open /etc/services: %v", err)
|
||||
}
|
||||
defer fd.Close()
|
||||
br := bufio.NewReader(fd)
|
||||
|
Loading…
x
Reference in New Issue
Block a user