File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,6 @@ pub use self::TestResult::*;
16
16
// it means.
17
17
pub const TR_OK : i32 = 50 ;
18
18
19
- // On Windows we use __fastfail to abort, which is documented to use this
20
- // exception code.
21
- #[ cfg( windows) ]
22
- const STATUS_ABORTED : i32 = 0xC0000409u32 as i32 ;
23
-
24
19
#[ derive( Debug , Clone , PartialEq ) ]
25
20
pub enum TestResult {
26
21
TrOk ,
@@ -95,8 +90,10 @@ pub fn get_result_from_exit_code(
95
90
) -> TestResult {
96
91
let result = match status. code ( ) {
97
92
Some ( TR_OK ) => TestResult :: TrOk ,
93
+ // On Windows we use __fastfail to abort, which is documented to use this
94
+ // exception code.
98
95
#[ cfg( windows) ]
99
- Some ( STATUS_ABORTED ) => TestResult :: TrFailed ,
96
+ Some ( 0xC0000409 ) => TestResult :: TrFailed ,
100
97
#[ cfg( unix) ]
101
98
None => match status. signal ( ) {
102
99
Some ( libc:: SIGABRT ) => TestResult :: TrFailed ,
You can’t perform that action at this time.
0 commit comments