tests: skip issue_7144 if strace is missing (#7903)

This commit is contained in:
winlogon
2026-02-12 12:26:20 +01:00
committed by GitHub
parent 9dacb1c53e
commit 2486d49778
+8
View File
@@ -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()