summaryrefslogtreecommitdiff
path: root/integration_tests
diff options
context:
space:
mode:
Diffstat (limited to 'integration_tests')
-rw-r--r--integration_tests/main_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/integration_tests/main_test.go b/integration_tests/main_test.go
index f065c4a..7cc078d 100644
--- a/integration_tests/main_test.go
+++ b/integration_tests/main_test.go
@@ -324,3 +324,16 @@ func TestMkdirRmdir(t *testing.T) {
t.Fatal(err)
}
}
+
+
+// Test Rename
+func TestRename(t *testing.T) {
+ err := ioutil.WriteFile(defaultPlainDir + "rename1", []byte("content"), 0777)
+ if err != nil {
+ t.Fatal(err)
+ }
+ err = syscall.Rename(defaultPlainDir + "rename1", defaultPlainDir + "rename2")
+ if err != nil {
+ t.Fatal(err)
+ }
+}