diff options
| author | Min <45393763+MinxuanZ@users.noreply.github.com> | 2024-08-08 15:53:53 +0800 |
|---|---|---|
| committer | monstercatss <manypotatoes1@gmail.com> | 2024-08-09 09:21:09 +0800 |
| commit | a3f8edff20a7d8aadd98d2553bd9ad12508a9980 (patch) | |
| tree | 5e55dd6918b53af4c320dcfbe7805a40b5c4db20 | |
| parent | 11b801bc4e410e77e6935a0c4544d4a90b868214 (diff) | |
| download | rust-a3f8edff20a7d8aadd98d2553bd9ad12508a9980.tar.gz rust-a3f8edff20a7d8aadd98d2553bd9ad12508a9980.zip | |
[SPARC] fix the name of signal 19 in sparc arch
| -rw-r--r-- | library/std/src/sys/pal/unix/process/process_unix/tests.rs | 10 |
1 files changed, 9 insertions, 1 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 1ca1ae7f3f4..f6044c4455c 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 @@ -26,8 +26,16 @@ fn exitstatus_display_tests() { if cfg!(target_os = "linux") { #[cfg(any(target_arch = "mips", target_arch = "mips64"))] t(0x0137f, "stopped (not terminated) by signal: 19 (SIGPWR)"); - #[cfg(not(any(target_arch = "mips", target_arch = "mips64")))] + + #[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 = "sparc", + target_arch = "mips64", + target_arch = "sprac64")))] t(0x0137f, "stopped (not terminated) by signal: 19 (SIGSTOP)"); + t(0x0ffff, "continued (WIFCONTINUED)"); } |
