test: unlink config file in teardown

This commit is contained in:
Daniel Eklöf 2021-11-21 20:13:08 +01:00
parent f6908619b3
commit 11dfa2145f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -49,7 +49,9 @@ static void
conf_file_teardown(void)
{
if (conf_file.fd >= 0)
close(conf_file.fd);
ck_assert_int_eq(close(conf_file.fd), 0);
if (conf_file.path != NULL)
ck_assert_int_eq(unlink(conf_file.path), 0);
}
}