Port tests/timerfd.c