diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2023-11-14 15:16:37 -0500 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-11-14 20:19:38 +0000 |
commit | 58e6ee9df4f74b1078541c8924cf2918ceec0765 (patch) | |
tree | 41676a9e4b975de3989fc201a9b812e34402e0e2 /lib/PublicInbox/TestCommon.pm | |
parent | 0e2b20d6eb0754426d021d8db1fb8db7584dd925 (diff) | |
download | public-inbox-58e6ee9df4f74b1078541c8924cf2918ceec0765.tar.gz |
The tests will check for strace >= 4.16, but version 4.24 that I have does not accept --version, only -V. This works for both older and newer strace, so switch to using "strace -V" for the check. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'lib/PublicInbox/TestCommon.pm')
-rw-r--r-- | lib/PublicInbox/TestCommon.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index caf709c2..a5546905 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -956,9 +956,9 @@ sub strace_inject (;$) { my $cmd = strace(@_); state $ver = do { require PublicInbox::Spawn; - my $v = PublicInbox::Spawn::run_qx([$cmd, '--version']); + my $v = PublicInbox::Spawn::run_qx([$cmd, '-V']); $v =~ m!version\s+([1-9]+\.[0-9]+)! or - xbail "no strace --version: $v"; + xbail "no strace -V: $v"; eval("v$1"); }; $ver ge v4.16 or skip "$cmd too old for syscall injection (". |