diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-08-09 18:24:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-09 18:24:59 +0200 |
| commit | 2e0c5adf04fd2d0a093d05c961c9bf7c99a0aecf (patch) | |
| tree | b6b3b95f7f344a6ec5d389f678c3520044a796eb | |
| parent | 2066002b86062d57771f1c0f63871d825f4f201c (diff) | |
| parent | 0106f5bcbab8ded01bc4b027d8381d2a3a7cc265 (diff) | |
| download | rust-2e0c5adf04fd2d0a093d05c961c9bf7c99a0aecf.tar.gz rust-2e0c5adf04fd2d0a093d05c961c9bf7c99a0aecf.zip | |
Rollup merge of #128859 - MinxuanZ:mips-sig, r=Amanieu
Fix the name of signal 19 in library/std/src/sys/pal/unix/process/process_unix/tests.rs for mips/sparc linux relate to #128816
| -rw-r--r-- | library/std/src/sys/pal/unix/process/process_unix/tests.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/library/std/src/sys/pal/unix/process/process_unix/tests.rs b/library/std/src/sys/pal/unix/process/process_unix/tests.rs index e5e1f956bc3..f4d6ac6b4e3 100644 --- a/library/std/src/sys/pal/unix/process/process_unix/tests.rs +++ b/library/std/src/sys/pal/unix/process/process_unix/tests.rs @@ -24,7 +24,20 @@ fn exitstatus_display_tests() { // 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. if cfg!(target_os = "linux") { + #[cfg(any(target_arch = "mips", target_arch = "mips64"))] + t(0x0137f, "stopped (not terminated) by signal: 19 (SIGPWR)"); + + #[cfg(any(target_arch = "sparc", target_arch = "sparc64"))] + t(0x0137f, "stopped (not terminated) by signal: 19 (SIGCONT)"); + + #[cfg(not(any( + target_arch = "mips", + target_arch = "mips64", + target_arch = "sparc", + target_arch = "sparc64" + )))] t(0x0137f, "stopped (not terminated) by signal: 19 (SIGSTOP)"); + t(0x0ffff, "continued (WIFCONTINUED)"); } |
