Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

vfs: make mount tests run on OpenBSD

Nick Craig-Wood5c4af237e45d
diff --git a/vfs/vfstest/write.go b/vfs/vfstest/write.go
index 6d883cbf0..873779d26 100644
--- a/vfs/vfstest/write.go
+++ b/vfs/vfstest/write.go
@@ -5,6 +5,7 @@ import (
"runtime"
"testing"
+ "github.com/rclone/rclone/vfs"
"github.com/rclone/rclone/vfs/vfscommon"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -110,6 +111,9 @@ func TestWriteFileDup(t *testing.T) {
var dupFd uintptr
dupFd, err = writeTestDup(fh.Fd())
+ if err == vfs.ENOSYS {
+ t.Skip("dup not supported on this platform")
+ }
require.NoError(t, err)
dupFile := os.NewFile(dupFd, fh.Name())
diff --git a/vfs/vfstest/write_other.go b/vfs/vfstest/write_other.go
index f1a6f4dc1..b484b765c 100644
--- a/vfs/vfstest/write_other.go
+++ b/vfs/vfstest/write_other.go
@@ -1,4 +1,4 @@
-//go:build !linux && !darwin && !freebsd && !windows
+//go:build !linux && !darwin && !freebsd && !openbsd && !windows
package vfstest
diff --git a/vfs/vfstest/write_unix.go b/vfs/vfstest/write_unix.go
index bbd9c2657..8dcb872fd 100644
--- a/vfs/vfstest/write_unix.go
+++ b/vfs/vfstest/write_unix.go
@@ -1,4 +1,4 @@
-//go:build linux || darwin || freebsd
+//go:build linux || darwin || freebsd || openbsd
package vfstest