diff options
| author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2021-03-04 12:44:19 +0000 |
|---|---|---|
| committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2021-03-04 12:44:19 +0000 |
| commit | 8e4433ab3e6a0fe8cc6f83379b30a48f94da4f33 (patch) | |
| tree | 2a2ce639989b9e5a2648fc290ea566f454af1195 /library/std/src | |
| parent | a240ff5a7713f744755855c507eab327f90cd824 (diff) | |
| download | rust-8e4433ab3e6a0fe8cc6f83379b30a48f94da4f33.tar.gz rust-8e4433ab3e6a0fe8cc6f83379b30a48f94da4f33.zip | |
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>
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/sys/unix/process/process_unix/tests.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/library/std/src/sys/unix/process/process_unix/tests.rs b/library/std/src/sys/unix/process/process_unix/tests.rs index 5d1bf470835..915402970f5 100644 --- a/library/std/src/sys/unix/process/process_unix/tests.rs +++ b/library/std/src/sys/unix/process/process_unix/tests.rs @@ -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 |
