64 Commits

Author SHA1 Message Date
Bert Belder
adf44ab203
test: remove unnecessary semicolon from test-tree 2019-05-05 04:52:33 +02:00
Bert Belder
653545fd35
test: make test-connect-success-events more robust 2018-11-17 02:02:49 -08:00
Bert Belder
5c32cea921
test: add test for 'connected socket always writable' bug 2018-11-17 00:43:48 -08:00
Bert Belder
a9e78ad9b5
test: add test for events reported after connect() fails 2018-11-17 00:43:48 -08:00
Bert Belder
f813598587
src,test: use consistent naming style for private names 2018-06-06 11:37:43 -07:00
Bert Belder
dd65a0c06b
util: move static_assert polyfill to test-util.h
It's no longer used in the main source code.
2018-06-04 23:55:30 -07:00
Bert Belder
613a821a30
src: rename/remove macros that clang says have reserved names 2018-05-17 01:31:28 -07:00
Bert Belder
8f4d4e9602
src,test: squelch clang signed/unsigned conversion warnings 2018-05-17 01:31:28 -07:00
Bert Belder
042bfd32f3
test: add static qualifier to local functions in test-oneshot-and-hangup 2018-05-17 01:31:27 -07:00
Bert Belder
bcc72f8ec5
test: make clang use __attribute__((constructor)) to register leak checker 2018-05-17 01:31:27 -07:00
Bert Belder
4e21e8411e
test: surpress some overly pedantic clang warnings 2018-05-17 01:31:26 -07:00
Bert Belder
0fbf0e2b0e
src: use more condensed style for short comments 2018-05-03 14:40:52 +02:00
Bert Belder
279315afcd
src: add missing <string.h> includes 2018-05-03 14:40:51 +02:00
Bert Belder
b895c1866e
test: write newline before check() failure message 2018-05-03 14:40:50 +02:00
Bert Belder
7fc24cef64
test: verify that IP and IPv6 sockets can coexist in the same epoll set 2018-03-09 00:42:31 +01:00
Bert Belder
9799eec661
tree: implement simpler version without macros 2018-02-12 01:40:07 +01:00
Bert Belder
ed51c0a335 test: squelch gcc -Wparentheses warning 2017-12-08 19:41:41 +01:00
Bert Belder
e358fdc430 test: use portable printf format specifier for 64-bit integer 2017-12-08 19:41:41 +01:00
Bert Belder
d25f2bf8c4 test: move variable declarations to top of block 2017-12-08 19:41:41 +01:00
Bert Belder
658775faee test: add epoll_ctl_mod() EEXIST and ENOENT tests to test-error 2017-12-07 22:30:54 +01:00
Bert Belder
937b9a27fa test: improve test-error readability 2017-12-07 22:26:08 +01:00
Bert Belder
157cadf4e4 api: always check handle validity when epoll_ctl_mod() fails 2017-12-07 22:00:11 +01:00
Bert Belder
24ae64e042 test: add more test cases to test-error 2017-12-07 19:09:35 +01:00
Bert Belder
450292aebc test: add missing errno.h include to test-oneshot-and-hangup 2017-12-07 04:40:57 +01:00
Bert Belder
6182e1ec73 test: add leak checker to all tests 2017-12-05 20:30:04 +01:00
Bert Belder
4d6cb0ff5b test: remove unnecessary include from test-error 2017-12-05 20:09:59 +01:00
Bert Belder
ada9cb5910 test: close epoll handle after running test-ctl-fuzz 2017-12-05 20:09:48 +01:00
Bert Belder
9114b4232a test: add test to detect memory leak
The leak itself was fixed in the previous commit.
2017-12-05 20:08:55 +01:00
Bert Belder
a11f4de81c test: add some epoll_ctl() test cases to test-error 2017-12-05 05:14:02 +01:00
Bert Belder
af9a6eb40f test: add tests for epoll_wait() failure modes 2017-12-04 23:22:03 +01:00
Bert Belder
bbeed7566c test: add (incomplete) error code test 2017-12-04 21:07:43 +01:00
Bert Belder
d5b5b605c0 api: epoll_ctl_mod() report EBADF when modifying/deleting invalid socket 2017-12-04 21:03:59 +01:00
Bert Belder
981b3caf4e api: epoll_create() and epoll_create1() should return NULL on failure 2017-12-04 20:04:30 +01:00
Bert Belder
98fc483e76 test: remove unnecessary WS2tcpip.h includes 2017-12-04 17:20:58 +01:00
Bert Belder
d64a5f282d test: remove unnecessary event mask casts to uint32_t 2017-12-03 23:16:10 +01:00
Bert Belder
a0865a8677 test: add test for automatic dropping or closed sockets 2017-12-03 18:17:45 +01:00
Bert Belder
389a2fae80 test: use double underscores in '__declspec' 2017-12-01 22:51:15 +01:00
Bert Belder
6317d82823 test: use check() instead of assert()
This is to ensure these checks also run in release builds.
2017-11-27 16:56:47 +01:00
Bert Belder
056b2d72c4 test: implement shared check() macro 2017-11-27 16:55:46 +01:00
Bert Belder
387257e87f test: shorten duration of some tests 2017-11-27 01:11:41 +01:00
Bert Belder
a53ad7c753 test-multi-poll: poll each port from multiple threads 2017-11-24 16:00:44 +01:00
Bert Belder
26ef0feed5 test: add test for EPOLLONESHOT, EPOLLRDHUP and EPOLLHUP 2017-11-23 03:00:26 +01:00
Bert Belder
6777162e73 test: make test-reflock less chatty 2017-11-21 17:12:46 +01:00
Bert Belder
782f228e50 test: fix test-udp-pings 2017-11-21 17:11:18 +01:00
Bert Belder
eb673e3fed all: rename the project to 'wepoll' 2017-09-28 00:12:20 +02:00
Bert Belder
4ea40313be epoll: epoll_create(1) to match linux API more closely 2017-09-25 19:54:20 +02:00
Bert Belder
45728a1e90 api: reference the epoll port by windows HANDLE 2017-09-25 18:15:17 +02:00
Bert Belder
bb23a2b9f0 reflock: make it much simpler 2017-09-25 17:51:03 +02:00
Bert Belder
a94fbfd459 test: add reflock test 2017-09-23 14:05:34 +02:00
Bert Belder
2a7b9be01d test: add test-ctl-fuzz 2017-09-14 01:35:37 +02:00