1// Copyright 2021 The Go Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style 3// license that can be found in the LICENSE file. 4 5//go:build windows || plan9 || (js && wasm) || wasip1 6 7package testenv 8 9import ( 10 "errors" 11 "io/fs" 12 "os" 13) 14 15// Sigquit is the signal to send to kill a hanging subprocess. 16// On Unix we send SIGQUIT, but on non-Unix we only have os.Kill. 17var Sigquit = os.Kill 18 19func syscallIsNotSupported(err error) bool { 20 return errors.Is(err, fs.ErrPermission) || errors.Is(err, errors.ErrUnsupported) 21} 22