wininet: let automated testers force all DNS lookups to return localhost
hans at codeweavers.com
Fri Oct 31 07:32:52 CDT 2008
On Friday 31 October 2008 12:45:58 Dan Kegel wrote:
> The public internet can (and does) go pear-shaped
> in the middle of test runs, which means any test
> that tries to access the public internet is de facto
> flaky, even if it tries to protect itself by skipping
> if the internet is down.
> So let's provide a way for automated testers to
> force all hostname resolution requests to
> return the same result (say, 'localhost' or 'mytestserver').
> Only include this in debugging builds.
What happened to your /etc/hosts proposal? It has the
advantage that we don't need changes to Wine source code.
You would need to duplicate this code in every dll that
does networking, if possible. I don't think it will work
for wldap32, where there is no lookup call to hook into.
More information about the wine-devel