Skip to content

Commit

Permalink
fixup: test spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
passcod committed Mar 11, 2024
1 parent a430b38 commit 18fba8d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/tokio_windows/id_same_as_inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,13 @@ async fn job_object() -> Result<()> {

Ok(())
}

#[tokio::test]
async fn job_object_spawn_only() -> Result<()> {
TokioCommandWrap::with_new("powershell.exe", |command| {
command.arg("/C").arg("echo hello").stdout(Stdio::null());
})
.wrap(JobObject)
.spawn()?;
Ok(())
}

0 comments on commit 18fba8d

Please sign in to comment.