cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to provoke 407/401 in regerssion tests? (was: Re: Obtaining realm)

From: Josef Wolf <jw_at_raven.inka.de>
Date: Tue, 18 Nov 2008 23:03:51 +0100

On Tue, Nov 18, 2008 at 11:04:11AM -0800, Dan Fandrich wrote:
> On Tue, Nov 18, 2008 at 07:13:39PM +0100, Josef Wolf wrote:
> > Thanks for the hint Dan, but I still don't get it. I have put this in
> > the test description:
> >
> > # tool is what to use instead of 'curl'
> > <tool>
> > lib560
> > </tool>
> > <command>
> > http://anything:560/ %HOSTIP:%HTTPPORT
> > </command>
>
> Sorry, I forgot that the magic word "test" has to be included in the host
> name for the port-equals-test-number automagic to happen. Try this instead:
>
> http://test.anything:560/ %HOSTIP:%HTTPPORT

Ah, looks better now, thanks!

BTW: I'd suggest following patch to enable test-specific gdbinit files
     when debugging tests.

Index: tests/runtests.pl
===================================================================
--- tests/runtests.pl (Revision 30)
+++ tests/runtests.pl (Arbeitskopie)
@@ -2097,9 +2097,11 @@
     }

     if($gdbthis) {
+ my $gdbinit = "$TESTDIR/gdbinit$testnum";
         open(GDBCMD, ">$LOGDIR/gdbcmd");
         print GDBCMD "set args $cmdargs\n";
         print GDBCMD "show args\n";
+ print GDBCMD "source $gdbinit\n" if -e $gdbinit;
         close(GDBCMD);
     }
     # run the command line we built
Received on 2008-11-18