diff --git a/tests/pressure-vessel/utils.c b/tests/pressure-vessel/utils.c index 3bdb9f0a881659c33dcf6d982f3a9fd4fe68b94f..9fa84bb99e0e26d7134acaf3b2d6b9e00c014c9c 100644 --- a/tests/pressure-vessel/utils.c +++ b/tests/pressure-vessel/utils.c @@ -38,7 +38,7 @@ typedef struct { - int unused; + TestsOpenFdSet old_fds; } Fixture; typedef struct @@ -51,6 +51,8 @@ setup (Fixture *f, gconstpointer context) { G_GNUC_UNUSED const Config *config = context; + + f->old_fds = tests_check_fd_leaks_enter (); } static void @@ -58,6 +60,8 @@ teardown (Fixture *f, gconstpointer context) { G_GNUC_UNUSED const Config *config = context; + + tests_check_fd_leaks_leave (f->old_fds); } static void