pipewire/test
Barnabás Pőcze bf886ba209 support: also protect against recursive invocations
Add an extra private field to the source to store the pollevent of
the current iteration. This changes ABI but it seems an embedded source
is not used outside of our own plugins and the unit test doesn't test
this ABI case.

Whenever a source is removed, we can set the data field of the
pollevent to NULL so that it won't be handled in any iteration anymore.

Avoid dispatching the same event multiple times when doing recursive
iterations.

Add some more unit tests for this.

Fixes #2114
2022-02-08 17:21:10 +01:00
..
meson.build test: add test for the loop 2022-02-08 11:08:16 +01:00
pwtest-compat.c treewide: only define feature macros when the feature is available 2022-02-04 00:15:59 +01:00
pwtest-implementation.h test: add errno check macros 2021-06-09 18:00:06 +10:00
pwtest.c test: fix dll unload 2022-02-08 11:31:38 +01:00
pwtest.h test: add a filter for iteration 2021-10-08 07:06:42 +00:00
test-array.c array: re-initialize the array in pw_array_clear() 2021-10-07 15:08:57 +10:00
test-client.c test: move the client and utils tests over here 2021-08-04 07:45:06 +00:00
test-config.c test: disable broken test 2022-02-01 18:15:16 +01:00
test-context.c treewide: only define feature macros when the feature is available 2022-02-04 00:15:59 +01:00
test-example.c meson.build: drop HAVE_CONFIG_H 2021-06-10 09:04:16 +10:00
test-lib.c test: call pw_deinit() at end of test 2022-02-08 11:34:08 +01:00
test-logger.c test: test-logger: ignore some systemd journal error codes 2021-12-01 11:13:50 +01:00
test-loop.c support: also protect against recursive invocations 2022-02-08 17:21:10 +01:00
test-map.c map: make _insert_at() fail on a removed item 2021-10-25 16:17:35 +02:00
test-properties.c test: move some of the property tests to pwtest 2021-06-17 07:08:53 +00:00
test-pwtest.c treewide: only define feature macros when the feature is available 2022-02-04 00:15:59 +01:00
test-spa-buffer.c test: convert two spa tests to pwtest 2021-06-09 18:00:39 +10:00
test-spa-json.c json: add spa_json_parse_stringn() 2022-01-04 12:37:00 +01:00
test-spa-log.c tests: fix log test 2021-09-29 17:06:35 +02:00
test-spa-node.c test: replace all spa_assert() macros with spa_assert_se() 2021-07-27 10:24:44 +10:00
test-spa-pod.c test: replace all spa_assert() macros with spa_assert_se() 2021-07-27 10:24:44 +10:00
test-spa-utils.c spa: add a macro to check for a callback version 2021-09-28 09:35:38 +02:00
test-support.c test: add a test for the logger truncation 2021-06-09 18:00:39 +10:00
test-utils.c test: move the client and utils tests over here 2021-08-04 07:45:06 +00:00