Skip to content

Commit

Permalink
std: Apply fixes for tail drop expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss authored and gitbot committed Mar 6, 2025
1 parent eb4c95b commit 70838db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/src/sys/pal/unix/linux/pidfd/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ fn test_command_pidfd() {
.expect_err("pidfd should not have been created");

// exercise the fork/exec path since the earlier attempts may have used pidfd_spawnp()
let mut child =
unsafe { Command::new("false").pre_exec(|| Ok(())) }.create_pidfd(true).spawn().unwrap();
let mut cmd = Command::new("false");
let mut child = unsafe { cmd.pre_exec(|| Ok(())) }.create_pidfd(true).spawn().unwrap();

assert!(child.id() > 0 && child.id() < -1i32 as u32);

Expand Down

0 comments on commit 70838db

Please sign in to comment.