summaryrefslogtreecommitdiff
path: root/integration_tests/main_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-12-10 20:02:18 +0100
committerJakob Unterwurzacher2015-12-10 20:02:18 +0100
commit61ee2271c454047781afad6ded2e17e6efe20113 (patch)
treed2f6a45c34a6686b4247037b75671a89f861c68c /integration_tests/main_test.go
parent29336ba61425240e89878049853e0bf4fbd5c148 (diff)
tests: test read-write directory operations on all example filesystems
Diffstat (limited to 'integration_tests/main_test.go')
-rw-r--r--integration_tests/main_test.go20
1 files changed, 2 insertions, 18 deletions
diff --git a/integration_tests/main_test.go b/integration_tests/main_test.go
index 953c552..398a9d4 100644
--- a/integration_tests/main_test.go
+++ b/integration_tests/main_test.go
@@ -12,7 +12,6 @@ import (
"os"
"runtime"
"sync"
- "syscall"
"testing"
)
@@ -314,25 +313,10 @@ func TestFilenameEncryption(t *testing.T) {
// Test Mkdir and Rmdir
func TestMkdirRmdir(t *testing.T) {
- dir := defaultPlainDir + "dir1"
- err := os.Mkdir(dir, 0777)
- if err != nil {
- t.Fatal(err)
- }
- err = syscall.Rmdir(dir)
- if err != nil {
- t.Fatal(err)
- }
+ testMkdirRmdir(t, defaultPlainDir)
}
// 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)
- }
+ testRename(t, defaultPlainDir)
}