From: Dan Fandrich Date: Thu, 18 Jan 2007 20:32:46 +0000 (+0000) Subject: Make the test script tag parser a bit more robust. X-Git-Tag: curl-7_16_1~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6da70628c60d4f0914529076db5a72d3ca3fbe61;p=thirdparty%2Fcurl.git Make the test script tag parser a bit more robust. Check for the .exe extension on mingw32 builds. --- diff --git a/tests/getpart.pm b/tests/getpart.pm index ccfbd7d628..9ade56a19e 100644 --- a/tests/getpart.pm +++ b/tests/getpart.pm @@ -64,7 +64,7 @@ sub getpart { $inside++; } elsif((1 ==$inside) && ($_ =~ /^ *\<$part[ \>]/)) { - if($_ =~ /$part .*base64=/) { + if($_ =~ /$part [^>]*base64=/) { # attempt to detect base64 encoded parts $base64=1; } diff --git a/tests/testcurl.pl b/tests/testcurl.pl index 8d207d1cda..48f63369cb 100755 --- a/tests/testcurl.pl +++ b/tests/testcurl.pl @@ -133,6 +133,9 @@ if ($^O eq 'MSWin32' || $targetos) { $binext = '.exe'; $libext = '.lib'; } + elsif ($targetos =~ /mingw32/) { + $binext = '.exe'; + } elsif ($targetos =~ /netware/) { $configurebuild = 0; $binext = '.nlm';