mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-12 04:27:51 -05:00
test: unlink config file in teardown
This commit is contained in:
parent
f6908619b3
commit
11dfa2145f
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue