2021-09-09 20:25:25 +08:00
|
|
|
//go:build cmount && cgo && (linux || darwin || freebsd || windows) && (!race || !windows)
|
2017-05-19 22:46:13 +08:00
|
|
|
// +build cmount
|
2017-05-03 05:36:11 +08:00
|
|
|
// +build cgo
|
|
|
|
// +build linux darwin freebsd windows
|
2017-11-19 22:18:57 +08:00
|
|
|
// +build !race !windows
|
|
|
|
|
|
|
|
// FIXME this doesn't work with the race detector under Windows either
|
|
|
|
// hanging or producing lots of differences.
|
2017-05-03 05:36:11 +08:00
|
|
|
|
|
|
|
package cmount
|
|
|
|
|
|
|
|
import (
|
2022-01-27 17:38:24 +08:00
|
|
|
"runtime"
|
2017-05-03 05:36:11 +08:00
|
|
|
"testing"
|
|
|
|
|
2022-01-27 17:38:24 +08:00
|
|
|
"github.com/rclone/rclone/fstest/testy"
|
2020-04-16 20:33:46 +08:00
|
|
|
"github.com/rclone/rclone/vfs/vfstest"
|
2017-05-03 05:36:11 +08:00
|
|
|
)
|
|
|
|
|
2018-04-08 18:18:15 +08:00
|
|
|
func TestMount(t *testing.T) {
|
2022-01-27 17:38:24 +08:00
|
|
|
// Disable tests under macOS and the CI since they are locking up
|
|
|
|
if runtime.GOOS == "darwin" {
|
|
|
|
testy.SkipUnreliable(t)
|
|
|
|
}
|
2020-04-16 20:33:46 +08:00
|
|
|
vfstest.RunTests(t, false, mount)
|
2018-04-08 18:18:15 +08:00
|
|
|
}
|