Skip to content

Commit a240ff5

Browse files
committed
ExitStatus unknown wait status test: Make it Linux only
If different unices have different bit patterns for WIFSTOPPED and WIFCONTINUED then simply being glibc is probably not good enough for this rather ad-hoc test to work. Do it on Linux only. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
1 parent 67cfc22 commit a240ff5

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ fn exitstatus_display_tests() {
2222
// Testing "unrecognised wait status" is hard because the wait.h macros typically
2323
// assume that the value came from wait and isn't mad. With the glibc I have here
2424
// this works:
25-
#[cfg(target_env = "gnu")]
25+
#[cfg(all(target_os = "linux", target_env = "gnu"))]
2626
t(0x000ff, "unrecognised wait status: 255 0xff");
2727
}

0 commit comments

Comments
 (0)