summaryrefslogtreecommitdiff
path: root/tests/libtest/test1022.pl
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-16 13:32:45 +0000
committerYang Tse <yangsita@gmail.com>2010-02-16 13:32:45 +0000
commit46b112bcd439f4413925a7300d66a3e6f148765e (patch)
treec925ce0c32a0af8bbcf427187c3838d005e3218b /tests/libtest/test1022.pl
parentf442dd6496c8710c4000a078e8085238fdaa7545 (diff)
downloadcurl-46b112bcd439f4413925a7300d66a3e6f148765e.tar.gz
replaced tabs with spaces
Diffstat (limited to 'tests/libtest/test1022.pl')
-rwxr-xr-xtests/libtest/test1022.pl26
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/libtest/test1022.pl b/tests/libtest/test1022.pl
index 94b3cb04f..fad024e19 100755
--- a/tests/libtest/test1022.pl
+++ b/tests/libtest/test1022.pl
@@ -2,8 +2,8 @@
# Determine if curl-config --version matches the curl --version
if ( $#ARGV != 2 )
{
- print "Usage: $0 curl-config-script curl-version-output-file version|vernum\n";
- exit 3;
+ print "Usage: $0 curl-config-script curl-version-output-file version|vernum\n";
+ exit 3;
}
my $what=$ARGV[2];
@@ -23,23 +23,23 @@ open(CURLCONFIG, "sh $ARGV[0] --$what|") || die "Can't get curl-config --$what l
$_ = <CURLCONFIG>;
chomp;
if ( $what eq "version" ) {
- /^libcurl ([\.\d]+(-CVS)?)$/ ;
- $curlconfigversion = $1;
+ /^libcurl ([\.\d]+(-CVS)?)$/ ;
+ $curlconfigversion = $1;
}
else {
- # Convert hex version to decimal for comparison's sake
- /^(..)(..)(..)$/ ;
- $curlconfigversion = hex($1) . "." . hex($2) . "." . hex($3);
+ # Convert hex version to decimal for comparison's sake
+ /^(..)(..)(..)$/ ;
+ $curlconfigversion = hex($1) . "." . hex($2) . "." . hex($3);
- # Strip off the -CVS from the curl version if it's there
- $version =~ s/-CVS$//;
+ # Strip off the -CVS from the curl version if it's there
+ $version =~ s/-CVS$//;
}
close CURLCONFIG;
my $different = $version ne $curlconfigversion;
if ($different || !$version) {
- print "Mismatch in --version:\n";
- print "curl: $version\n";
- print "curl-config: $curlconfigversion\n";
- exit 1;
+ print "Mismatch in --version:\n";
+ print "curl: $version\n";
+ print "curl-config: $curlconfigversion\n";
+ exit 1;
}