Skip to content
Snippets Groups Projects
Commit ea96069a authored by Simon McVittie's avatar Simon McVittie
Browse files

tests: Assert that no file descriptors are leaked

parent 881c2fa2
No related branches found
No related tags found
1 merge request!239Make pressure-vessel responsible for unpacking runtimes
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment