From: Daniel Stenberg Date: Thu, 27 Jun 2024 08:16:59 +0000 (+0200) Subject: runtests: fix %VERNUM X-Git-Tag: curl-8_9_0~171 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cdbfad96ff750d7d24b9850d48908970f911262a;p=thirdparty%2Fcurl.git runtests: fix %VERNUM It needs to be set to the leading digits and dots only, so that the `-[date]` suffix strings are not included, as those used in the daily snapshots. Fixes #14035 Reported-by: Marcel Raad Closes #14036 --- diff --git a/tests/runtests.pl b/tests/runtests.pl index 1c1d27b46f..732ebae894 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -523,7 +523,7 @@ sub checksystemfeatures { $curl = $_; $CURLVERSION = $1; $CURLVERNUM = $CURLVERSION; - $CURLVERNUM =~ s/[^0-9.]//g; # dots and numbers only + $CURLVERNUM =~ s/^([0-9.]+)(.*)/$1/; # leading dots and numbers $curl =~ s/^(.*)(libcurl.*)/$1/g || die "Failure determining curl binary version"; $libcurl = $2;