Hello golang-codereviews@googlegroups.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 2 months ago
(2014-04-03 08:39:59 UTC)
#1
On 2014/04/03 23:14:51, iant wrote: > This indirection was introduced in https://codereview.appspot.com/7778043 to > avoid ...
11 years, 2 months ago
(2014-04-03 23:36:15 UTC)
#3
On 2014/04/03 23:14:51, iant wrote:
> This indirection was introduced in https://codereview.appspot.com/7778043 to
> avoid crashing the test program on Windows. Is that no longer necessary?
Yup, the root cause of the crash was... not using ioutil.TempFile appropriately
and was fixed in CL 83390043.
--- a/src/pkg/net/protoconn_test.go
+++ b/src/pkg/net/protoconn_test.go
@@ -19,7 +19,7 @@
// also uses /tmp directory in case it is prohibited to create UNIX
// sockets in TMPDIR.
func testUnixAddr() string {
- f, err := ioutil.TempFile("/tmp", "nettest")
+ f, err := ioutil.TempFile("", "nettest")
Issue 83880043: code review 83880043: net: drop unnecessary indirection from PacketConn tests
(Closed)
Created 11 years, 2 months ago by mikio
Modified 11 years, 2 months ago
Reviewers: gobot
Base URL:
Comments: 0