void impl::unset(const std::string& name) { atf_error_t err = atf_env_unset(name.c_str()); if (atf_is_error(err)) throw_atf_error(err); }
static void unset_all(void) { const struct varnames *v; for (v = all_vars; v->lc != NULL; v++) RE(atf_env_unset(v->uc)); }
ATF_TC_BODY(unset, tc) { ATF_REQUIRE(atf_env_has("PATH")); RE(atf_env_unset("PATH")); ATF_REQUIRE(!atf_env_has("PATH")); }