File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
library/std/src/sys/unix/process/process_unix Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,13 @@ fn exitstatus_display_tests() {
11
11
t ( 0x0008b , "signal: 11 (core dumped)" ) ;
12
12
t ( 0x00000 , "exit code: 0" ) ;
13
13
t ( 0x0ff00 , "exit code: 255" ) ;
14
- t ( 0x0137f , "stopped (not terminated) by signal: 19" ) ;
15
- t ( 0x0ffff , "continued (WIFCONTINUED)" ) ;
14
+
15
+ // On MacOS, 0x0137f is WIFCONTINUED, not WIFSTOPPED. Probably *BSD is similar.
16
+ // https://github.com/rust-lang/rust/pull/82749#issuecomment-790525956
17
+ // The purpose of this test is to test our string formatting, not our understanding of the wait
18
+ // status magic numbers. So restrict these to Linux.
19
+ #[ cfg( target_os = "linux" ) ] t ( 0x0137f , "stopped (not terminated) by signal: 19" ) ;
20
+ #[ cfg( target_os = "linux" ) ] t ( 0x0ffff , "continued (WIFCONTINUED)" ) ;
16
21
17
22
// Testing "unrecognised wait status" is hard because the wait.h macros typically
18
23
// assume that the value came from wait and isn't mad. With the glibc I have here
You can’t perform that action at this time.
0 commit comments