From: Dan Fandrich Date: Wed, 20 Apr 2011 21:11:12 +0000 (-0700) Subject: Fixed test 1022 when using daily snapshots X-Git-Tag: curl-7_21_6~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b6df743f6335107ee1a09c34ddcd6ab0dc02266;p=curl Fixed test 1022 when using daily snapshots --- diff --git a/tests/libtest/test1022.pl b/tests/libtest/test1022.pl index 7fac00e7a..bd777a5e8 100755 --- a/tests/libtest/test1022.pl +++ b/tests/libtest/test1022.pl @@ -12,7 +12,7 @@ my $what=$ARGV[2]; open(CURL, "$ARGV[1]") || die "Can't open curl --version list in $ARGV[1]\n"; $_ = ; chomp; -/libcurl\/([\.\d]+(-DEV)?)/; +/libcurl\/([\.\d]+((-DEV)|(-\d+))?)/; my $version = $1; close CURL; @@ -24,7 +24,7 @@ $_ = ; chomp; my $filever=$_; if ( $what eq "version" ) { - if($filever =~ /^libcurl ([\.\d]+(-DEV)?)$/) { + if($filever =~ /^libcurl ([\.\d]+((-DEV)|(-\d+))?)$/) { $curlconfigversion = $1; } else {