build: fix linting issues reported by running golangci-lint with different GOOS

This commit is contained in:
albertony
2024-04-18 09:36:22 +02:00
parent 159e274921
commit 7ee22fcdf9
23 changed files with 124 additions and 46 deletions

View File

@@ -0,0 +1,20 @@
//go:build !linux && !darwin && !freebsd && !windows
// +build !linux,!darwin,!freebsd,!windows
package vfstest
import (
"errors"
"runtime"
"testing"
)
// TestWriteFileDoubleClose tests double close on write
func TestWriteFileDoubleClose(t *testing.T) {
t.Skip("not supported on " + runtime.GOOS)
}
// writeTestDup performs the platform-specific implementation of the dup() unix
func writeTestDup(oldfd uintptr) (uintptr, error) {
return 0, errors.New("not supported on " + runtime.GOOS)
}