]> Cypherpunks repositories - gostls13.git/commit
io/ioutil: make TestTempFile more robust
authorMostyn Bramley-Moore <mostyn@antipode.se>
Mon, 17 Apr 2017 19:01:10 +0000 (21:01 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 17 Apr 2017 19:45:37 +0000 (19:45 +0000)
commit2c1bff6e0681ff2cace0f69c28b05f47d4262aa3
tree18ec5052b58c854de711341327b606e95e025b82
parent73f283f4c8ded504ca4839bd73b701e812cbeb3f
io/ioutil: make TestTempFile more robust

The first part of this test tries to confirm that we can't create
a TempFile in a non-existent directory, but does not ensure that
the non-existent directory really does not exist.  Instead, let's
create an empty temp directory, and use a non-existent subdir of
that.

Change-Id: I176f14ed5f5a2d7a8c29d8f6949755db69d7dbb6
Reviewed-on: https://go-review.googlesource.com/40914
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/io/ioutil/tempfile_test.go