[3/4] winhttp/tests: Send a not empty payload in the server authorization response, check the received data on the client side.

Hans Leidekker hans at codeweavers.com
Mon Dec 7 04:46:09 CST 2015


On Mon, 2015-12-07 at 11:27 +0100, Hans Leidekker wrote:
> > > It fails here:
> > > winhttp.c:2389: Test failed: expected 11, got 15
> > 
> > is that a clean build + fresh .wine prefix? Just applied first 3 patches from
> > the series on top of clean Wine source, recompiled, created new ~/.wine and
> > the tests pass cleanly for me.
> 
> It is a clean build. If I run the test with WINEDEBUG=+winhttp it passes.

You have trailing data in your test. You set Content-Length to 12 but send 
sizeof("Unauthorized\r\n\r\n") - 1 bytes. If I remove the line endings it
passes reliably.





More information about the wine-devel mailing list