mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
ExitStatus tests: Make less legible to satisfy "tidy"
I strongly disagree with tidy in this case but AIUI there is no way to override it. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
This commit is contained in:
parent
a240ff5a77
commit
8e4433ab3e
@ -16,8 +16,10 @@ fn exitstatus_display_tests() {
|
||||
// https://github.com/rust-lang/rust/pull/82749#issuecomment-790525956
|
||||
// The purpose of this test is to test our string formatting, not our understanding of the wait
|
||||
// status magic numbers. So restrict these to Linux.
|
||||
#[cfg(target_os = "linux")] t(0x0137f, "stopped (not terminated) by signal: 19");
|
||||
#[cfg(target_os = "linux")] t(0x0ffff, "continued (WIFCONTINUED)");
|
||||
#[cfg(target_os = "linux")]
|
||||
t(0x0137f, "stopped (not terminated) by signal: 19");
|
||||
#[cfg(target_os = "linux")]
|
||||
t(0x0ffff, "continued (WIFCONTINUED)");
|
||||
|
||||
// Testing "unrecognised wait status" is hard because the wait.h macros typically
|
||||
// assume that the value came from wait and isn't mad. With the glibc I have here
|
||||
|
Loading…
Reference in New Issue
Block a user