github.com/rclone/rclone@v1.66.1-0.20240517100346-7b89735ae726/vfs/vfstest/write_other.go (about) 1 //go:build !linux && !darwin && !freebsd && !windows 2 // +build !linux,!darwin,!freebsd,!windows 3 4 package vfstest 5 6 import ( 7 "errors" 8 "runtime" 9 "testing" 10 ) 11 12 // TestWriteFileDoubleClose tests double close on write 13 func TestWriteFileDoubleClose(t *testing.T) { 14 t.Skip("not supported on " + runtime.GOOS) 15 } 16 17 // writeTestDup performs the platform-specific implementation of the dup() unix 18 func writeTestDup(oldfd uintptr) (uintptr, error) { 19 return 0, errors.New("not supported on " + runtime.GOOS) 20 }