net: add unixpacket

R=golang-dev, rsc, rsc1
CC=golang-dev
https://golang.org/cl/2309043
This commit is contained in:
Albert Strasheim 2011-01-19 14:21:58 -05:00 committed by Russ Cox
parent eb56a79e99
commit 01fad6a6b0
4 changed files with 58 additions and 22 deletions

View file

@ -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) {