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:
Ian Jackson 2021-03-04 12:44:19 +00:00
parent a240ff5a77
commit 8e4433ab3e

View File

@ -16,8 +16,10 @@ fn exitstatus_display_tests() {
// https://github.com/rust-lang/rust/pull/82749#issuecomment-790525956 // 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 // 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. // status magic numbers. So restrict these to Linux.
#[cfg(target_os = "linux")] t(0x0137f, "stopped (not terminated) by signal: 19"); #[cfg(target_os = "linux")]
#[cfg(target_os = "linux")] t(0x0ffff, "continued (WIFCONTINUED)"); 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 // 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 // assume that the value came from wait and isn't mad. With the glibc I have here