diff options
| author | Min <45393763+MinxuanZ@users.noreply.github.com> | 2024-08-08 15:36:58 +0800 |
|---|---|---|
| committer | monstercatss <manypotatoes1@gmail.com> | 2024-08-09 09:21:09 +0800 |
| commit | 11b801bc4e410e77e6935a0c4544d4a90b868214 (patch) | |
| tree | 35397a6a6d9464f5befb42d0d13056403afdbe01 | |
| parent | c7b0d4e81f56da02d41f73fb5a85673a29f6cbc9 (diff) | |
| download | rust-11b801bc4e410e77e6935a0c4544d4a90b868214.tar.gz rust-11b801bc4e410e77e6935a0c4544d4a90b868214.zip | |
[MIPS] fix the name of signal 19 in mips
| -rw-r--r-- | library/std/src/sys/pal/unix/process/process_unix/tests.rs | 3 |
1 files changed, 3 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..1ca1ae7f3f4 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,6 +24,9 @@ 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(not(any(target_arch = "mips", target_arch = "mips64")))] t(0x0137f, "stopped (not terminated) by signal: 19 (SIGSTOP)"); t(0x0ffff, "continued (WIFCONTINUED)"); } |
