jiixyj / epoll-shim

small epoll implementation using kqueue; includes all features needed for libinput/libevdev
MIT License
91 stars 24 forks source link

Check errno on startup in timerfd__{reset_to_very_long,unmodified_errno} #53

Open arichardson opened 2 months ago

arichardson commented 2 months ago

Due to a bug in CheriBSD, errno was set non-zero when starting this test, but without these checks the test confusingly failed in the later check which made me think something was wrong in timerfd_create. Check errno on startup to make this more obvious.

See https://github.com/CTSRD-CHERI/cheribsd/issues/1424