From: Daniel Stenberg Date: Wed, 22 Mar 2023 11:53:56 +0000 (+0100) Subject: runtests: die if curl version can be found X-Git-Tag: curl-8_1_0~316 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70afa0d2516caf5373aaa021826537444f9502c4;p=thirdparty%2Fcurl.git runtests: die if curl version can be found Closes #10813 --- diff --git a/tests/runtests.pl b/tests/runtests.pl index de394bd3e2..124a964635 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -5970,7 +5970,8 @@ if(!$randseed) { localtime(time); # seed of the month. December 2019 becomes 201912 $randseed = ($year+1900)*100 + $mon+1; - open(C, "$CURL --version 2>/dev/null|"); + open(C, "$CURL --version 2>/dev/null|") || + die "could not get curl version!"; my @c = ; close(C); # use the first line of output and get the md5 out of it