mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 11:53:00 -04:00
test filling up the hash table a bit
This commit is contained in:
parent
4ccdd53f78
commit
c9ad3af229
@ -12,7 +12,7 @@
|
||||
|
||||
int main (int argc, char **argv)
|
||||
{
|
||||
int i;
|
||||
int i, j;
|
||||
const char *s1, *s2;
|
||||
|
||||
evthread_use_windows_threads ();
|
||||
@ -64,6 +64,14 @@ int main (int argc, char **argv)
|
||||
E(WSATRY_AGAIN);
|
||||
E(WSANO_RECOVERY);
|
||||
E(WSANO_DATA);
|
||||
E(0xdeadbeef); /* test the case where no message is available */
|
||||
|
||||
/* fill up the hash table a bit to make sure it grows properly */
|
||||
for (j = 0; j < 50; j++) {
|
||||
int err;
|
||||
evutil_secure_rng_get_bytes(&err, sizeof(err));
|
||||
evutil_socket_error_to_string(err);
|
||||
}
|
||||
}
|
||||
|
||||
s2 = evutil_socket_error_to_string (WSAEINTR);
|
||||
|
Loading…
x
Reference in New Issue
Block a user