github.com/hy3/cuto@v0.9.8-0.20160830082821-aa6652f877b7/util/proc_unix_test.go (about)

     1  // +build darwin linux
     2  
     3  package util
     4  
     5  import (
     6  	"os/exec"
     7  	"strconv"
     8  )
     9  
    10  func createSleepCommand(second int) *exec.Cmd {
    11  	return exec.Command("/bin/sleep", strconv.Itoa(second))
    12  }