diff options
| author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2021-02-07 12:16:11 +0000 |
|---|---|---|
| committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2021-05-07 11:17:44 +0100 |
| commit | a17eab7beddf87807d9d7fc71b7dfb90b5e2488a (patch) | |
| tree | 5364660b83bcd0a59b27feea9d53714e6449481d /library/std/src | |
| parent | f8015061c88ba35f7af09ff68a054ffe6c87990c (diff) | |
| download | rust-a17eab7beddf87807d9d7fc71b7dfb90b5e2488a.tar.gz rust-a17eab7beddf87807d9d7fc71b7dfb90b5e2488a.zip | |
panic ui test: Provide comprehensive test for panic after fork
This tests that we can indeed safely panic after fork, both a raw libc::fork and in a Command pre_exec hook. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/sys/unix/process/process_unix/tests.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/std/src/sys/unix/process/process_unix/tests.rs b/library/std/src/sys/unix/process/process_unix/tests.rs index 61b2e4a145f..59953a2230f 100644 --- a/library/std/src/sys/unix/process/process_unix/tests.rs +++ b/library/std/src/sys/unix/process/process_unix/tests.rs @@ -2,6 +2,9 @@ use crate::os::unix::process::{CommandExt, ExitStatusExt}; use crate::panic::catch_unwind; use crate::process::Command; +// Many of the other aspects of this situation, including heap alloc concurrency +// safety etc., are tested in src/test/ui/process/process-panic-after-fork.rs + #[test] fn exitstatus_display_tests() { // In practice this is the same on every Unix. |
