github.com/kolbycrouch/elvish@v0.14.1-0.20210614162631-215b9ac1c423/pkg/eval/external_cmd_unix_test.go (about) 1 // +build !windows,!plan9,!js 2 3 package eval_test 4 5 import ( 6 "syscall" 7 ) 8 9 func exitWaitStatus(exit uint32) syscall.WaitStatus { 10 // The exit<<8 is gross but I can't find any exported symbols that would 11 // allow us to construct WaitStatus. So assume legacy UNIX encoding 12 // for a process that exits normally; i.e., not due to a signal. 13 return syscall.WaitStatus(exit << 8) 14 }