Skip to content

Commit 3bd708e

Browse files
committed
Add match arm for Fuchsia status code upon an abort in a test
This change adds ZX_TASK_RETCODE_EXCEPTION_KILL as an expected status code upon an abort in a test on Fuchsia. Tests fixes #127539
1 parent b215beb commit 3bd708e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/test/src/test_result.rs

+3
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ pub fn get_result_from_exit_code(
105105
}
106106
None => unreachable!("status.code() returned None but status.signal() was None"),
107107
},
108+
// Upon an abort, Fuchsia returns the status code ZX_TASK_RETCODE_EXCEPTION_KILL.
109+
#[cfg(target_os = "fuchsia")]
110+
Some(-1028) => TestResult::TrFailed,
108111
#[cfg(not(unix))]
109112
None => TestResult::TrFailedMsg(format!("unknown return code")),
110113
#[cfg(any(windows, unix))]

0 commit comments

Comments
 (0)