[Issue 5209] posix/sys/select.d: FD_ISSET function should return bool
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 21 16:35:15 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5209
--- Comment #4 from Iain Buclaw <ibuclaw at ubuntu.com> 2010-12-21 16:33:12 PST ---
Created an attachment (id=852)
unittest for sys.select
Well the most obvious thing it affects is std.socket;
import std.socket;
unittest
{
SocketSet sset = new SocketSet(24);
// All socket descriptors should not be set before using them.
for (socket_t i = 0; i < sset.max; i++)
{
assert(! sset.isSet(i));
}
}
Is the attached file OK? :~)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list