Skip to content

Commit 8e4433a

Browse files
committed
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 <[email protected]>
1 parent a240ff5 commit 8e4433a

File tree

1 file changed

+4
-2
lines changed
  • library/std/src/sys/unix/process/process_unix

1 file changed

+4
-2
lines changed

library/std/src/sys/unix/process/process_unix/tests.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ fn exitstatus_display_tests() {
1616
// https://github.com/rust-lang/rust/pull/82749#issuecomment-790525956
1717
// The purpose of this test is to test our string formatting, not our understanding of the wait
1818
// 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)");
19+
#[cfg(target_os = "linux")]
20+
t(0x0137f, "stopped (not terminated) by signal: 19");
21+
#[cfg(target_os = "linux")]
22+
t(0x0ffff, "continued (WIFCONTINUED)");
2123

2224
// Testing "unrecognised wait status" is hard because the wait.h macros typically
2325
// assume that the value came from wait and isn't mad. With the glibc I have here

0 commit comments

Comments
 (0)