From 70afa0d2516caf5373aaa021826537444f9502c4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 22 Mar 2023 12:53:56 +0100 Subject: [PATCH] runtests: die if curl version can be found Closes #10813 --- tests/runtests.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.3