Skip to content

Commit d50143f

Browse files
committedJul 15, 2024
Update name of Windows abort constant to match platform documentation
1 parent cbaa831 commit d50143f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎test/src/test_result.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub const TR_OK: i32 = 50;
1919
// On Windows we use __fastfail to abort, which is documented to use this
2020
// exception code.
2121
#[cfg(windows)]
22-
const STATUS_ABORTED: i32 = 0xC0000409u32 as i32;
22+
const STATUS_FAIL_FAST_EXCEPTION: i32 = 0xC0000409u32 as i32;
2323

2424
// On Zircon (the Fuchsia kernel), an abort from userspace calls the
2525
// LLVM implementation of __builtin_trap(), e.g., ud2 on x86, which
@@ -104,7 +104,7 @@ pub fn get_result_from_exit_code(
104104
let result = match status.code() {
105105
Some(TR_OK) => TestResult::TrOk,
106106
#[cfg(windows)]
107-
Some(STATUS_ABORTED) => TestResult::TrFailed,
107+
Some(STATUS_FAIL_FAST_EXCEPTION) => TestResult::TrFailed,
108108
#[cfg(unix)]
109109
None => match status.signal() {
110110
Some(libc::SIGABRT) => TestResult::TrFailed,

0 commit comments

Comments
 (0)
Please sign in to comment.