mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
net: add unixpacket
R=golang-dev, rsc, rsc1 CC=golang-dev https://golang.org/cl/2309043
This commit is contained in:
parent
eb56a79e99
commit
01fad6a6b0
4 changed files with 58 additions and 22 deletions
|
|
@ -52,6 +52,14 @@ var dialErrorTests = []DialErrorTest{
|
|||
"unix", "", "/etc/",
|
||||
"dial unix /etc/: (permission denied|socket operation on non-socket|connection refused)",
|
||||
},
|
||||
{
|
||||
"unixpacket", "", "/etc/file-not-found",
|
||||
"dial unixpacket /etc/file-not-found: no such file or directory",
|
||||
},
|
||||
{
|
||||
"unixpacket", "", "/etc/",
|
||||
"dial unixpacket /etc/: (permission denied|socket operation on non-socket|connection refused)",
|
||||
},
|
||||
}
|
||||
|
||||
func TestDialError(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue