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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user