about summary refs log tree commit diff
path: root/library/std/src/sys
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2021-03-04 12:26:27 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2021-03-04 12:26:27 +0000
commita240ff5a7713f744755855c507eab327f90cd824 (patch)
treec2badf90babe284a4d9d2efb8b34b864c982fa4f /library/std/src/sys
parent67cfc22ee228cee1a795ca1f7430165984fe1b04 (diff)
downloadrust-a240ff5a7713f744755855c507eab327f90cd824.tar.gz
rust-a240ff5a7713f744755855c507eab327f90cd824.zip
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>
Diffstat (limited to 'library/std/src/sys')
-rw-r--r--library/std/src/sys/unix/process/process_unix/tests.rs2
1 files changed, 1 insertions, 1 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 3ab568eaa33..5d1bf470835 100644
--- a/library/std/src/sys/unix/process/process_unix/tests.rs
+++ b/library/std/src/sys/unix/process/process_unix/tests.rs
@@ -22,6 +22,6 @@ fn exitstatus_display_tests() {
     // 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
     // this works:
-    #[cfg(target_env = "gnu")]
+    #[cfg(all(target_os = "linux", target_env = "gnu"))]
     t(0x000ff, "unrecognised wait status: 255 0xff");
 }