about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-12-13 00:50:06 +0000
committerEric Wong <e@80x24.org>2023-12-13 09:01:46 +0000
commit1f70373f1fe951959eadf1f311152b0131d07303 (patch)
treef3dfc8ec39d6344a288855904d3f1ae41ede96f7
parent235b55840c4066029e56ed91d6d3dc46c921a23b (diff)
downloadpublic-inbox-1f70373f1fe951959eadf1f311152b0131d07303.tar.gz
There are many Linux (GNU or otherwise) which do not have
strace(1) installed.
-rw-r--r--lib/PublicInbox/TestCommon.pm2
1 files changed, 1 insertions, 1 deletions
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 (;$) {