On Tue, 31 May 2011, Marc wrote:
Good idea. I applied the patch but now testcurl.pl just runs at 100% CPU
load while doing nothing.
I was a little too quick. The patch needed to shift @ARGV as well as otherwise
it'll just loop non-stop... See attachment for an updated patch!
--
/ daniel.haxx.se
From 3d64ed25dfacef8b44835f2097d5fdc8ccc08b62 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <[email protected]>
Date: Tue, 31 May 2011 10:44:10 +0200
Subject: [PATCH] testcurl.pl: allow configure args to use '='
---
tests/testcurl.pl | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/testcurl.pl b/tests/testcurl.pl
index 27f188f..08b80d1 100755
--- a/tests/testcurl.pl
+++ b/tests/testcurl.pl
@@ -6,7 +6,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 1998 - 2010, Daniel Stenberg, <[email protected]>, et al.
+# Copyright (C) 1998 - 2011, Daniel Stenberg, <[email protected]>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -108,8 +108,9 @@ while ($ARGV[0]) {
elsif ($ARGV[0] =~ /--desc=/) {
$desc = (split(/=/, shift @ARGV))[1];
}
- elsif ($ARGV[0] =~ /--configure=/) {
- $confopts = (split(/=/, shift @ARGV))[1];
+ elsif ($ARGV[0] =~ /--configure=(.*)/) {
+ $confopts = $1;
+ shift @ARGV;
}
elsif (($ARGV[0] eq "--nocvsup") || ($ARGV[0] eq "--nogitpull")) {
$nogitpull=1;
--
1.7.5.3
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html