1
0
mirror of https://github.com/golang/go synced 2024-11-13 19:10:22 -07:00

path/filepath: do not restore original working directory twice in test

LGTM=dave
R=golang-codereviews, dave
CC=golang-codereviews
https://golang.org/cl/122910043
This commit is contained in:
Alex Brainman 2014-08-07 10:22:10 +10:00
parent b91aea5536
commit a2d3669ef7

View File

@ -784,12 +784,6 @@ var absTests = []string{
}
func TestAbs(t *testing.T) {
oldwd, err := os.Getwd()
if err != nil {
t.Fatal("Getwd failed: ", err)
}
defer os.Chdir(oldwd)
root, err := ioutil.TempDir("", "TestAbs")
if err != nil {
t.Fatal("TempDir failed: ", err)