cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] NTLM tests: boost coverage by forcing the hostname

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 1 Jul 2010 22:39:53 +0200 (CEST)

On Wed, 30 Jun 2010, Kamil Dudka wrote:

> Attached is my proposal how it may look like. To be honest, I am not sure
> how portable this solution is...

Wow, I like it. Nice work! The fact that it works even without a debug build
is really great. We could actually make it possible to switch on this static
host name for debug-builds with an environment variable or so, to allow
targets that don't support LD_PRELOAD to also run the tests.

And to get the test cases only run on support targets/builds, we have
<precheck> in the test cases that can test for first LD_PRELOAD being support
and as a second option if debug is enabled and only run the test then.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-07-01