summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/matrix/matrix_test.go10
-rw-r--r--tests/symlink_race/main.go14
2 files changed, 0 insertions, 24 deletions
diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go
index 5906b3c..5cc5251 100644
--- a/tests/matrix/matrix_test.go
+++ b/tests/matrix/matrix_test.go
@@ -306,16 +306,6 @@ func TestFileHoles(t *testing.T) {
}
}
-// sContains - does the slice of strings "haystack" contain "needle"?
-func sContains(haystack []string, needle string) bool {
- for _, element := range haystack {
- if element == needle {
- return true
- }
- }
- return false
-}
-
func TestRmwRace(t *testing.T) {
runtime.GOMAXPROCS(10)
diff --git a/tests/symlink_race/main.go b/tests/symlink_race/main.go
index 6fb794f..8474a83 100644
--- a/tests/symlink_race/main.go
+++ b/tests/symlink_race/main.go
@@ -4,7 +4,6 @@ import (
"fmt"
"os"
"syscall"
- "time"
)
const (
@@ -44,19 +43,6 @@ func renameLoop() {
}
}
-func chmodLoop() {
- var err error
- for {
- err = syscall.Chmod(testFile, 0777)
- if err != nil {
- fmt.Printf("Chmod() failed: %v\n", err)
- } else {
- fmt.Printf("Chmod() ok\n")
- }
- time.Sleep(100 * time.Microsecond)
- }
-}
-
func openLoop() {
var err error
var f *os.File