]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
t/io: strace is optional on Linux
authorEric Wong <e@80x24.org>
Wed, 13 Dec 2023 00:50:06 +0000 (00:50 +0000)
committerEric Wong <e@80x24.org>
Wed, 13 Dec 2023 09:01:46 +0000 (09:01 +0000)
There are many Linux (GNU or otherwise) which do not have
strace(1) installed.

lib/PublicInbox/TestCommon.pm

index 5f123eb422cc395be040fada143fe058f610b3b3..d587bf1054b9176a98efb15851618aae2351404b 100644 (file)
@@ -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 (;$) {