]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Make the test script tag parser a bit more robust.
authorDan Fandrich <dan@coneharvesters.com>
Thu, 18 Jan 2007 20:32:46 +0000 (20:32 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 18 Jan 2007 20:32:46 +0000 (20:32 +0000)
Check for the .exe extension on mingw32 builds.

tests/getpart.pm
tests/testcurl.pl

index ccfbd7d62871a9a7d6dfc6663e0780b4e0665085..9ade56a19e1061908e5accbc36dce016c3c29d22 100644 (file)
@@ -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;
             }
index 8d207d1cda98d6ecefa703695077dfb63987deee..48f63369cbb581c6f2595163005f26c3c5494841 100755 (executable)
@@ -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';