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()