]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: remove an inappropriate use of runclientoutput
authorDan Fandrich <dan@coneharvesters.com>
Tue, 11 Apr 2023 00:09:56 +0000 (17:09 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 11 Apr 2023 21:55:32 +0000 (14:55 -0700)
This function is intended for running client code, not servers.

tests/runtests.pl

index 92b2bc35126246ba8900bc0d7c88b46985500e37..0deda7dc6e926a5defc54bd12d3ccc66d5e1d760 100755 (executable)
@@ -364,7 +364,7 @@ if (!$ENV{"NGHTTPX"}) {
     $ENV{"NGHTTPX"} = checktestcmd("nghttpx");
 }
 if ($ENV{"NGHTTPX"}) {
-    my $nghttpx_version=join(' ', runclientoutput("$ENV{'NGHTTPX'} -v"));
+    my $nghttpx_version=join(' ', `"$ENV{'NGHTTPX'} -v 2>/dev/null"`);
     $nghttpx_h3 = $nghttpx_version =~ /nghttp3\//;
     chomp $nghttpx_h3;
 }