From 18fba8d90b06b11d9d604ce210adc529088950c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Mon, 11 Mar 2024 19:38:15 +1300 Subject: [PATCH] fixup: test spawn --- tests/tokio_windows/id_same_as_inner.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/tokio_windows/id_same_as_inner.rs b/tests/tokio_windows/id_same_as_inner.rs index 8b6dbfd..8165467 100644 --- a/tests/tokio_windows/id_same_as_inner.rs +++ b/tests/tokio_windows/id_same_as_inner.rs @@ -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(()) +}