Simon McVittie 4204021513 tests: Ensure that unsubscribing with GetNameOwner in-flight doesn't crash
This was a bug that existed during development of this branch; make sure
it doesn't come back.

This test fails with a use-after-free and crash if we comment out the
part of name_watcher_unref_watched_name() that removes the name watcher
from `map_method_serial_to_name_watcher`.

It would also fail with an assertion failure if we asserted in
name_watcher_unref_watched_name() that get_name_owner_serial == 0
(i.e. that GetNameOwner is not in-flight at destruction).

Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-05-13 14:51:09 -05:00
..
2019-01-15 15:11:43 +00:00
2021-01-25 15:00:12 +01:00
2019-12-18 16:51:11 +00:00
2014-09-09 14:11:38 -04:00
2014-01-01 22:01:15 -05:00
2020-11-17 15:50:07 +00:00
2016-04-26 15:20:16 +02:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2021-01-25 15:00:12 +01:00
2020-11-17 15:50:07 +00:00
2020-09-30 19:39:30 +01:00
2018-09-12 15:42:11 +00:00
2020-11-17 15:50:07 +00:00
2020-11-17 15:50:07 +00:00
2019-01-10 13:50:26 -05:00
2021-06-04 11:57:41 +01:00