diff --git a/tests/test-foot.c b/tests/test-foot.c index 1e79233c..088244ea 100644 --- a/tests/test-foot.c +++ b/tests/test-foot.c @@ -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); } }