From 2486d497786fa0b17fab03a79c154790c3bdeaed Mon Sep 17 00:00:00 2001 From: winlogon Date: Thu, 12 Feb 2026 12:26:20 +0100 Subject: [PATCH] tests: skip issue_7144 if strace is missing (#7903) --- tokio/tests/process_issue_7144.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tokio/tests/process_issue_7144.rs b/tokio/tests/process_issue_7144.rs index 0756c6e67..de56cee7b 100644 --- a/tokio/tests/process_issue_7144.rs +++ b/tokio/tests/process_issue_7144.rs @@ -17,7 +17,15 @@ async fn issue_7144() { } } +async fn has_strace() -> bool { + Command::new("strace").arg("-V").output().await.is_ok() +} + async fn test_one() { + if !has_strace().await { + return; + } + let mut t = Command::new("strace") .args("-o /dev/null -D sleep 5".split(' ')) .spawn()