mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-07 00:00:09 +02:00
tests: skip issue_7144 if strace is missing (#7903)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user