Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit c529052

Browse files
committed
Treat return codes > 128 as ICE
Bash uses 128+N to express that a process was terminated by a signal N, so this is needed for scripts such as 66223.sh that contain a command that gets terminated
1 parent 85a4fca commit c529052

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ impl ICE {
5151
outcome: match output.status.code() {
5252
Some(0) => Outcome::NoError,
5353
Some(101) => Outcome::ICEd, // An ICE will cause an error code of 101
54+
// Bash uses 128+N for processes terminated by signal N
55+
Some(x) if x > 128 => Outcome::ICEd,
5456
Some(_) => Outcome::Errored,
5557
None => Outcome::ICEd, // If rustc receives a signal treat is as an ICE
5658
},

0 commit comments

Comments
 (0)