2024-04-18 15:36:22 +08:00
|
|
|
//go:build !linux && !darwin && !freebsd && !windows
|
|
|
|
// +build !linux,!darwin,!freebsd,!windows
|
2017-05-10 18:19:32 +08:00
|
|
|
|
2020-04-16 20:33:46 +08:00
|
|
|
package vfstest
|
2017-05-10 18:19:32 +08:00
|
|
|
|
|
|
|
import (
|
2024-04-18 15:36:22 +08:00
|
|
|
"errors"
|
2017-05-10 18:19:32 +08:00
|
|
|
"runtime"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
// TestWriteFileDoubleClose tests double close on write
|
|
|
|
func TestWriteFileDoubleClose(t *testing.T) {
|
|
|
|
t.Skip("not supported on " + runtime.GOOS)
|
|
|
|
}
|
2019-10-07 04:05:21 +08:00
|
|
|
|
2024-04-18 15:36:22 +08:00
|
|
|
// writeTestDup performs the platform-specific implementation of the dup() unix
|
2019-10-07 04:05:21 +08:00
|
|
|
func writeTestDup(oldfd uintptr) (uintptr, error) {
|
2024-04-18 15:36:22 +08:00
|
|
|
return 0, errors.New("not supported on " + runtime.GOOS)
|
2019-10-07 04:05:21 +08:00
|
|
|
}
|