Skip to content

Commit 9a0caab

Browse files
ijacksonm-ou-se
andcommitted
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 <[email protected]> Co-authored-by: Mara Bos <[email protected]>
1 parent ec8190e commit 9a0caab

File tree

1 file changed

+3
-0
lines changed
  • std/src/sys/unix/process/process_unix

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ use crate::os::unix::process::{CommandExt, ExitStatusExt};
22
use crate::panic::catch_unwind;
33
use crate::process::Command;
44

5+
// Many of the other aspects of this situation, including heap alloc concurrency
6+
// safety etc., are tested in src/test/ui/process/process-panic-after-fork.rs
7+
58
#[test]
69
fn exitstatus_display_tests() {
710
// In practice this is the same on every Unix.

0 commit comments

Comments
 (0)