[Bug 20748] chromium's net_unittests!SSLClientSocketTest.Read_Interrupted fails.

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Nov 18 14:47:01 CST 2009


http://bugs.winehq.org/show_bug.cgi?id=20748


Hans Leidekker <hans at meelstraat.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hans at meelstraat.net




--- Comment #1 from Hans Leidekker <hans at 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_refptr<net::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.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list