Commit ab3abfa3 by Chris Forbes

Regres: Adjust exit code handling

The go docs say the exit code is clobbered by `-1` on abnormal exit, but what they don't say is there's some type mangling along the way so we see it as 255 Bug: b/144426261 Change-Id: Ife77a950e4739afc94b9f5a950a06f4b853708ae Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/38989 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarBen Clayton <bclayton@google.com> Tested-by: 's avatarChris Forbes <chrisforbes@google.com>
parent 3a7101b4
......@@ -252,7 +252,7 @@ nextTest:
// Don't treat non-zero error codes as crashes.
var exitErr *exec.ExitError
if errors.As(err, &exitErr) {
if exitErr.ExitCode() != -1 {
if exitErr.ExitCode() != 255 {
out += fmt.Sprintf("\nProcess terminated with code %d", exitErr.ExitCode())
err = nil
}
......
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