diff options
author | Ian Lance Taylor <iant@golang.org> | 2019-02-20 16:34:48 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2019-02-26 23:33:36 +0000 |
commit | b97e40fc30843ebbb91f1ae38599a883498d828a (patch) | |
tree | 713c974e065eb51c278ffb60595e171762b571c9 | |
parent | 4b05dc91b0fe99724721e3545807f3b8f1310c52 (diff) | |
download | go-git-b97e40fc30843ebbb91f1ae38599a883498d828a.tar.gz |
net: remove unixgram test sockets
Updates https://gcc.gnu.org/PR89406
Change-Id: Iccf2760e42e9caa90720b96e74a805a9c0d48f35
Reviewed-on: https://go-review.googlesource.com/c/163277
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Mikio Hara <mikioh.public.networking@gmail.com>
Reviewed-by: Than McIntosh <thanm@google.com>
-rw-r--r-- | src/net/listen_test.go | 3 | ||||
-rw-r--r-- | src/net/mockserver_test.go | 2 | ||||
-rw-r--r-- | src/net/splice_test.go | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/src/net/listen_test.go b/src/net/listen_test.go index 6c3f70cc7b..6c9b92a9fc 100644 --- a/src/net/listen_test.go +++ b/src/net/listen_test.go @@ -780,6 +780,9 @@ func TestListenConfigControl(t *testing.T) { continue } c.Close() + if network == "unixgram" { + os.Remove(address) + } } }) } diff --git a/src/net/mockserver_test.go b/src/net/mockserver_test.go index 530293578a..e085f4440b 100644 --- a/src/net/mockserver_test.go +++ b/src/net/mockserver_test.go @@ -17,8 +17,6 @@ import ( ) // testUnixAddr uses ioutil.TempFile to get a name that is unique. -// It also uses /tmp directory in case it is prohibited to create UNIX -// sockets in TMPDIR. func testUnixAddr() string { f, err := ioutil.TempFile("", "go-nettest") if err != nil { diff --git a/src/net/splice_test.go b/src/net/splice_test.go index 4c300172c5..e2a6638e8f 100644 --- a/src/net/splice_test.go +++ b/src/net/splice_test.go @@ -242,6 +242,7 @@ func testSpliceNoUnixgram(t *testing.T) { if err != nil { t.Fatal(err) } + defer os.Remove(addr.Name) up, err := ListenUnixgram("unixgram", addr) if err != nil { t.Fatal(err) |