Commit b2407dd7 by Chris Forbes

regres: Don't ignore abnormal exits

Bug: b/144426261 Change-Id: Ic515f274bf1c02afbbe3f536c1c8cd654b0cc56e Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/38168 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarBen Clayton <bclayton@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarChris Forbes <chrisforbes@google.com>
parent b5407bfb
...@@ -1337,8 +1337,10 @@ nextTest: ...@@ -1337,8 +1337,10 @@ nextTest:
// Don't treat non-zero error codes as crashes. // Don't treat non-zero error codes as crashes.
var exitErr *exec.ExitError var exitErr *exec.ExitError
if errors.As(err, &exitErr) { if errors.As(err, &exitErr) {
out += fmt.Sprintf("\nProcess terminated with code %d", exitErr.ExitCode()) if exitErr.ExitCode() != -1 {
err = nil out += fmt.Sprintf("\nProcess terminated with code %d", exitErr.ExitCode())
err = nil
}
} }
switch err.(type) { switch err.(type) {
......
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