http://bugs.winehq.org/show_bug.cgi?id=20748
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hans@meelstraat.net
--- Comment #1 from Hans Leidekker hans@meelstraat.net 2009-11-18 14:47:01 --- This is the relevant code from the chromium test:
// Do a partial read and then exit. This test should not crash! scoped_refptrnet::IOBuffer buf = new net::IOBuffer(512); rv = sock->Read(buf, 512, &callback); EXPECT_TRUE(rv >= 0 || rv == net::ERR_IO_PENDING);
if (rv == net::ERR_IO_PENDING) rv = callback.WaitForResult();
EXPECT_NE(rv, 0);
On Wine sock->Read returns 0, which is accepted by the first expect statement but not the second. So the test relies on Windows always returning net::ERR_IO_PENDING.