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