aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/test1022.pl
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2011-04-21 14:47:35 -0700
committerDan Fandrich <dan@coneharvesters.com>2011-04-21 14:47:35 -0700
commitd8373cb9929e4453aba44d9d146ad107e72fc153 (patch)
tree6863fbfd5744bc257f72422250f7ac7472b06f4c /tests/libtest/test1022.pl
parent17df5d8caa1009c5ca168fc9643dc9d77c219832 (diff)
Fixed test 1023 when using daily snapshots
Diffstat (limited to 'tests/libtest/test1022.pl')
-rwxr-xr-xtests/libtest/test1022.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libtest/test1022.pl b/tests/libtest/test1022.pl
index bd777a5e8..377808c73 100755
--- a/tests/libtest/test1022.pl
+++ b/tests/libtest/test1022.pl
@@ -31,7 +31,7 @@ if ( $what eq "version" ) {
$curlconfigversion = "illegal value";
}
}
-else {
+else { # "vernum" case
# Convert hex version to decimal for comparison's sake
if($filever =~ /^(..)(..)(..)$/) {
$curlconfigversion = hex($1) . "." . hex($2) . "." . hex($3);
@@ -41,7 +41,7 @@ else {
}
# Strip off the -DEV from the curl version if it's there
- $version =~ s/-DEV$//;
+ $version =~ s/-\w*$//;
}
close CURLCONFIG;