Skip to content

Commit 2330192

Browse files
authored
Rollup merge of rust-lang#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 rust-lang#128816
2 parents 44db568 + 0106f5b commit 2330192

File tree

1 file changed

+13
-0
lines changed
  • library/std/src/sys/pal/unix/process/process_unix

1 file changed

+13
-0
lines changed

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

+13
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,20 @@ fn exitstatus_display_tests() {
2424
// The purpose of this test is to test our string formatting, not our understanding of the wait
2525
// status magic numbers. So restrict these to Linux.
2626
if cfg!(target_os = "linux") {
27+
#[cfg(any(target_arch = "mips", target_arch = "mips64"))]
28+
t(0x0137f, "stopped (not terminated) by signal: 19 (SIGPWR)");
29+
30+
#[cfg(any(target_arch = "sparc", target_arch = "sparc64"))]
31+
t(0x0137f, "stopped (not terminated) by signal: 19 (SIGCONT)");
32+
33+
#[cfg(not(any(
34+
target_arch = "mips",
35+
target_arch = "mips64",
36+
target_arch = "sparc",
37+
target_arch = "sparc64"
38+
)))]
2739
t(0x0137f, "stopped (not terminated) by signal: 19 (SIGSTOP)");
40+
2841
t(0x0ffff, "continued (WIFCONTINUED)");
2942
}
3043

0 commit comments

Comments
 (0)