http://bugs.winehq.org/show_bug.cgi?id=20748
--- Comment #2 from Dan Kegel dank@kegel.com 2009-11-18 15:12:14 --- I don't think so - if PENDING is returned by read, it gets the real status, which is definitely not going to be PENDING.
I think the test is just verifying that some bytes were received at that point. rv is negative on error, and positive byte count on success.