tests: adapt dir overwrite test for Go 1.8

In Go 1.8, os.Rename refuses to overwrite an empty directory.
Switch to syscall.Rename, which still does the right thing.
This commit is contained in:
Jakob Unterwurzacher 2017-02-20 21:22:05 +01:00
parent cb2d1fbcf8
commit b056776a01

View File

@ -531,7 +531,7 @@ func TestDirOverwrite(t *testing.T) {
if err != nil {
t.Fatal(err)
}
err = os.Rename(dir1, dir2)
err = syscall.Rename(dir1, dir2)
if err != nil {
t.Fatal(err)
}