elvish/pkg/eval/external_cmd_unix_test.go
Qi Xiao d0be34c227 Run gofmt with Go 1.17.
This has created a lot of //go:build lines.
2021-08-23 00:19:49 +01:00

16 lines
413 B
Go

//go:build !windows && !plan9 && !js
// +build !windows,!plan9,!js
package eval_test
import (
"syscall"
)
func exitWaitStatus(exit uint32) syscall.WaitStatus {
// The exit<<8 is gross but I can't find any exported symbols that would
// allow us to construct WaitStatus. So assume legacy UNIX encoding
// for a process that exits normally; i.e., not due to a signal.
return syscall.WaitStatus(exit << 8)
}