Skip to content

Commit

Permalink
Use return code for 'which command' checks
Browse files Browse the repository at this point in the history
Reviewed-by: Shane Lontis <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#12775)
  • Loading branch information
jon-oracle authored and paulidale committed Sep 7, 2020
1 parent 4348995 commit 884baaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/recipes/81-test_cmp_cli.t
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 884baaf

Please sign in to comment.