80-test_cmp_http.t: Silence check for availability of 'kill' and 'lsof' commands
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Sat, 3 Apr 2021 12:28:17 +0000 (14:28 +0200)
committerDr. David von Oheimb <dev@ddvo.net>
Wed, 14 Apr 2021 17:45:45 +0000 (19:45 +0200)
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14839)

test/recipes/80-test_cmp_http.t

index a8adaad96b45930bde71b4147d82c085b6c5ae2f..62cfbc987a103b9bd9a9fedeaa1a04f083adc7fd 100644 (file)
@@ -34,9 +34,9 @@ plan skip_all => "Tests involving local HTTP server not available on Windows, AI
 plan skip_all => "Tests involving local HTTP server not available in cross-compile builds"
     if defined $ENV{EXE_SHELL};
 plan skip_all => "Tests involving local HTTP server require 'kill' command"
-    if system("which kill");
+    if system("which kill >/dev/null");
 plan skip_all => "Tests involving local HTTP server require 'lsof' command"
-    if system("which lsof"); # this typically excludes Solaris
+    if system("which lsof >/dev/null"); # this typically excludes Solaris
 
 sub chop_dblquot { # chop any leading and trailing '"' (needed for Windows)
     my $str = shift;