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:
parent
b91aea5536
commit
a2d3669ef7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user