Lines Matching refs:env
32 #include "env.hpp"
45 ATF_REQUIRE(atf::env::has("PATH"));
46 ATF_REQUIRE(!atf::env::get("PATH").empty());
48 ATF_REQUIRE(!atf::env::has("_UNDEFINED_VARIABLE_"));
58 ATF_REQUIRE(atf::env::has("PATH"));
59 const std::string& oldval = atf::env::get("PATH");
60 atf::env::set("PATH", "foo-bar");
61 ATF_REQUIRE(atf::env::get("PATH") != oldval);
62 ATF_REQUIRE_EQ(atf::env::get("PATH"), "foo-bar");
64 ATF_REQUIRE(!atf::env::has("_UNDEFINED_VARIABLE_"));
65 atf::env::set("_UNDEFINED_VARIABLE_", "foo2-bar2");
66 ATF_REQUIRE_EQ(atf::env::get("_UNDEFINED_VARIABLE_"), "foo2-bar2");
76 ATF_REQUIRE(atf::env::has("PATH"));
77 atf::env::unset("PATH");
78 ATF_REQUIRE(!atf::env::has("PATH"));