Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
5fe84c8
always eagerly eval consts in Relate
lcnr Jan 23, 2021
2beea2c
add test for lazy norm err
lcnr Jan 23, 2021
3e305f6
Deprecate items that accidentally weren't deprecated
bstrie Feb 14, 2021
ec20993
Stabilize `unsafe_op_in_unsafe_fn` lint
LeSeulArtichaut Nov 19, 2020
fbd575a
process::unix: Handle other wait statuses in ExitStatus as Display
ijackson Feb 22, 2021
d8cfd56
process::unix: Test wait status formatting
ijackson Feb 22, 2021
4bb8425
ExitStatus: Improve documentation re wait status vs exit status
ijackson Feb 22, 2021
67cfc22
ExitStatus stop signal display test: Make it Linux only
ijackson Mar 4, 2021
a240ff5
ExitStatus unknown wait status test: Make it Linux only
ijackson Mar 4, 2021
8e4433a
ExitStatus tests: Make less legible to satisfy "tidy"
ijackson Mar 4, 2021
a05a890
Build rustdoc for run-make tests, not just run-make-fulldeps
jyn514 Mar 5, 2021
7e3ebe7
Add Option::get_or_default
camsteffen Mar 6, 2021
1cc8c4d
Use Option::get_or_default
camsteffen Mar 6, 2021
50bdd51
:arrow_up: rust-analyzer
lnicola Mar 8, 2021
fdb899b
WASI: Switch to crt1-command.o to enable support for new-style commands
sunfishcode Mar 9, 2021
11ca644
Always compile the fragile wait status test cases, just run them cond…
ijackson Mar 9, 2021
52d9792
Update README.md to use the correct cmake version number
wesleywiser Mar 9, 2021
62f2d72
Bump tracing-tree dependency
oli-obk Mar 9, 2021
0b1958c
Rollup merge of #79208 - LeSeulArtichaut:stable-unsafe_op_in_unsafe_f…
Dylan-DPC Mar 9, 2021
78bda6c
Rollup merge of #81309 - lcnr:lazy-norm-err-msgh, r=nikomatsakis
Dylan-DPC Mar 9, 2021
c769b60
Rollup merge of #82122 - bstrie:dep4real, r=dtolnay
Dylan-DPC Mar 9, 2021
a72181a
Rollup merge of #82411 - ijackson:fix-exitstatus, r=dtolnay
Dylan-DPC Mar 9, 2021
d8c4e2d
Rollup merge of #82802 - jyn514:build-rustdoc-fullmake, r=Mark-Simula…
Dylan-DPC Mar 9, 2021
f0c61c8
Rollup merge of #82849 - camsteffen:option-get-or-default, r=joshtrip…
Dylan-DPC Mar 9, 2021
077dff5
Rollup merge of #82908 - lnicola:rust-analyzer-2021-03-08, r=jonas-sc…
Dylan-DPC Mar 9, 2021
7c3f684
Rollup merge of #82924 - sunfishcode:wasi-command, r=alexcrichton
Dylan-DPC Mar 9, 2021
7ba271f
Rollup merge of #82937 - wesleywiser:update_cmake_version_in_readme, …
Dylan-DPC Mar 9, 2021
de570f7
Rollup merge of #82938 - oli-obk:tracing_tree_bump, r=Mark-Simulacrum
Dylan-DPC Mar 9, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Always compile the fragile wait status test cases, just run them cond…
…itionally

Co-authored-by: David Tolnay <[email protected]>
  • Loading branch information
ijackson and dtolnay authored Mar 9, 2021
commit 11ca64401a5d562898e8b5f46bd36d6d1c6dc3ef
13 changes: 7 additions & 6 deletions library/std/src/sys/unix/process/process_unix/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ fn exitstatus_display_tests() {
// https://github.com/rust-lang/rust/pull/82749#issuecomment-790525956
// 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.
#[cfg(target_os = "linux")]
t(0x0137f, "stopped (not terminated) by signal: 19");
#[cfg(target_os = "linux")]
t(0x0ffff, "continued (WIFCONTINUED)");
if cfg!(target_os = "linux") {
t(0x0137f, "stopped (not terminated) by signal: 19");
t(0x0ffff, "continued (WIFCONTINUED)");
}

// 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(all(target_os = "linux", target_env = "gnu"))]
t(0x000ff, "unrecognised wait status: 255 0xff");
if cfg!(all(target_os = "linux", target_env = "gnu")) {
t(0x000ff, "unrecognised wait status: 255 0xff");
}
}