mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
tests: plug fd leaks in free_source_with_data
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
parent
e0561ac68d
commit
7c0aa1a4a3
1 changed files with 5 additions and 0 deletions
|
|
@ -120,4 +120,9 @@ TEST(free_source_with_data)
|
|||
if (context.source2)
|
||||
wl_event_source_remove(context.source2);
|
||||
wl_event_loop_destroy(loop);
|
||||
|
||||
assert(close(context.p1[0]) == 0);
|
||||
assert(close(context.p1[1]) == 0);
|
||||
assert(close(context.p2[0]) == 0);
|
||||
assert(close(context.p2[1]) == 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue