From 1f70373f1fe951959eadf1f311152b0131d07303 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 13 Dec 2023 00:50:06 +0000 Subject: t/io: strace is optional on Linux There are many Linux (GNU or otherwise) which do not have strace(1) installed. --- lib/PublicInbox/TestCommon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index 5f123eb4..d587bf10 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -978,7 +978,7 @@ sub strace (@) { chomp $ps; skip "strace unusable on daemons\n$f is `$ps' (!= 0)" if $ps; } - require_cmd('strace', 1); + require_cmd('strace', 1) or skip 'strace not available', 1; } sub strace_inject (;$) { -- cgit v1.2.3-24-ge0c7