cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: make test on opensolairs

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 13 Jun 2008 14:35:27 -0700

On Fri, Jun 13, 2008 at 11:04:24PM +0200, Aleksandar Lazic wrote:
> this is the output on the console:
>
> ###
> curl-7.18.2/tests $ ./runtests.pl -v 1004
> ********* System characteristics ******** * curl 7.18.2
> (i386-pc-solaris2.11) * libcurl/7.18.2 OpenSSL/0.9.8a zlib/1.2.3
> * Features: IPv6 Largefile NTLM SSL libz * Host: osvbx
> * System: SunOS osvbx 5.11 snv_86 i86pc i386 i86pc
> * Server SSL: OFF
> * libcurl SSL: ON
> * libcurl debug: OFF
> * valgrind: OFF
> * HTTP IPv6 ON
> * FTP IPv6 ON
> * HTTP port: 8990
> * FTP port: 8992
> * FTP port 2: 8995
> * HTTP IPv6 port: 8994
> * FTP IPv6 port: 8996
> * TFTP port: 8997
> * SCP/SFTP port: 8999
> * SOCKS port: 9000
> * SSL library: OpenSSL
> * Libtool lib: OFF
> ***************************************** startnew: perl -I.
> ./httpserver.pl -p .http.pid 8990 CMD; ../src/curl -m13 -o
> log/verifiedserver -ksvg "http://127.0.0.1:8990/verifiedserver"
> 2>log/verifyhttp
> RUN: HTTP server is now running PID 520
> * pid http => 520 520
> test 1004...[HTTP GET with empty proxy]
> ../src/curl --output log/curl1004.out --include -v --trace-time http://127.0.0.1:8990/1004 --proxy "" >>log/stdout1004 2>>log/stderr1004

This is an odd result. What appears to be happening is that the test harness
executes this curl command, but it's interpreted by curl as though the empty
"" string after --proxy isn't there, i.e. the command actually run is this:

 ../src/curl --output log/curl1004.out --include -v --trace-time http://127.0.0.1:8990/1004 --proxy >>log/stdout1004 2>>log/stderr1004

which results in a curl error and failure of the test case.

Can you track down why this happens on your machine? The command is run
at line 2089 of tests/runtests.pl which eventually just uses perl's system()
call on the string. You could also try replacing the "" with '' in the
tests/data/test1004 file which could help indicate if it's a weird quoting
problem. If you could somehow force perl to use a different shell to
execute the command (maybe /bin/ksh instead of /bin/sh) it would help
trace it to a shell problem.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-06-13