aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJon Spillett <jon.spillett@oracle.com>2020-09-03 14:02:48 +1000
committerPauli <paul.dale@oracle.com>2020-09-08 09:03:09 +1000
commit884baafba4a5fec6502b828a73188d7133b9179b (patch)
treeb58af6c0b07f9b98286133d5a7ac0c2a999c1e3b /test
parent4348995b0d818203f37ffa51c9bdf4488cf24bad (diff)
downloadopenssl-884baafba4a5fec6502b828a73188d7133b9179b.zip
openssl-884baafba4a5fec6502b828a73188d7133b9179b.tar.gz
openssl-884baafba4a5fec6502b828a73188d7133b9179b.tar.bz2
Use return code for 'which command' checks
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/12775)
Diffstat (limited to 'test')
-rw-r--r--test/recipes/81-test_cmp_cli.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/recipes/81-test_cmp_cli.t b/test/recipes/81-test_cmp_cli.t
index 8c4f0f9..fa70c84 100644
--- a/test/recipes/81-test_cmp_cli.t
+++ b/test/recipes/81-test_cmp_cli.t
@@ -37,9 +37,9 @@ plan skip_all => "Tests involving CMP server not available on Windows or VMS"
plan skip_all => "Tests involving CMP server not available in cross-compile builds"
if defined $ENV{EXE_SHELL};
plan skip_all => "Tests involving CMP server require 'kill' command"
- unless `which kill`;
+ if system("which kill");
plan skip_all => "Tests involving CMP server require 'lsof' command"
- unless `which lsof`; # this typically excludes Solaris
+ if system("which lsof"); # this typically excludes Solaris
sub chop_dblquot { # chop any leading & trailing '"' (needed for Windows)
my $str = shift;