ATF_TC_CLEANUP(cleanup_sigterm, tc) { safe_remove(atf_tc_get_config_var(tc, "tmpfile")); }
ATF_TC_CLEANUP(cleanup_pass, tc) { if (atf_tc_get_config_var_as_bool(tc, "cleanup")) safe_remove(atf_tc_get_config_var(tc, "tmpfile")); }
void pending_channels::remove(channel::ptr channel, result_handler handler) { handler(safe_remove(channel) ? error::success : error::not_found); }