aboutsummaryrefslogtreecommitdiffstats
path: root/tests/signal-test.c
Commit message (Collapse)AuthorAgeFilesLines
* server: introduce wl_signal_emit_mutableSimon Ser2022-03-281-0/+41
| | | | | | | | | | | | | | | wl_signal_emit doesn't handle well situations where a listener removes another listener. This can happen in practice: wlroots and Weston [1] both have private helpers to workaround this defect. wl_signal_emit can't be fixed without breaking the API. Instead, introduce a new function. Callers need to make sure to always remove listeners when they are free'd. [1]: https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/457 Signed-off-by: Simon Ser <contact@emersion.fr> Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
* tests: Update boilerplate from MIT X11 license to MIT Expat licenseBryce Harrington2015-06-121-16/+19
| | | | | Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* tests: add unit tests for wl_signalMarek Ch2013-09-211-0/+114
Test wl_signal initialization, adding and getting listeners and emitting