Build doc first, to see the warnings better

Leave the code warnings at the end of the build, makes them more visible.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Add a flag for forcing a SYN_DROPPED event

uinput doesn't route a SYN_DROPPED, so we neeed to handle fds in
a rather complicated manner. For tests, avoid this and instead force
the library to sync if a specific flag is given.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test: add test case for button deltas after SYN_DROPPED

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Add a FIXME to log a warning message

When a sync is complete and the first event is a SYN_DROPPED again,
we have a problem. Log that so that the process can print a warning.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test: fix valgrind complaint about uninitialized bytes

uinput ignores the timestamp, but add it anyway to stop valgrind
worrying about it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test: fix a bunch of memory leaks

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test: close the right pipe fds

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>