Commit 82784462 by Ben Clayton

Regres: Fix unix build

The `ErrTimeout` type was promoted to the OS-common .go file, but I forgot to remove it from the unix .go file. Change-Id: Ic30675bd7bc1c5289080c45e21ce9cf19966d3e8 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/40708 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Tested-by: 's avatarBen Clayton <bclayton@google.com>
parent 430def83
...@@ -115,14 +115,3 @@ func Exec(timeout time.Duration, exe, wd string, env []string, args ...string) ( ...@@ -115,14 +115,3 @@ func Exec(timeout time.Duration, exe, wd string, env []string, args ...string) (
return b.Bytes(), err return b.Bytes(), err
} }
} }
// ErrTimeout is the error returned when a process does not finish with its
// permitted time.
type ErrTimeout struct {
process string
timeout time.Duration
}
func (e ErrTimeout) Error() string {
return fmt.Sprintf("'%v' did not return after %v", e.process, e.timeout)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment