1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-24 04:04:37 +00:00

vfs: make mount tests run on OpenBSD

This commit is contained in:
Nick Craig-Wood
2020-09-01 13:49:09 +01:00
parent 7dcbebf9bc
commit a910ec398d
4 changed files with 29 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
// +build linux darwin freebsd
// +build linux darwin freebsd openbsd
package vfstest
@@ -8,6 +8,7 @@ import (
"github.com/rclone/rclone/vfs/vfscommon"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"golang.org/x/sys/unix"
)
@@ -20,7 +21,7 @@ func TestWriteFileDoubleClose(t *testing.T) {
}
out, err := osCreate(run.path("testdoubleclose"))
assert.NoError(t, err)
require.NoError(t, err)
fd := out.Fd()
fd1, err := unix.Dup(int(fd))