Lines Matching refs:env
41 ATF_REQUIRE(atf::env::has("PATH")); in ATF_TEST_CASE_BODY()
42 ATF_REQUIRE(!atf::env::get("PATH").empty()); in ATF_TEST_CASE_BODY()
44 ATF_REQUIRE(!atf::env::has("_UNDEFINED_VARIABLE_")); in ATF_TEST_CASE_BODY()
54 ATF_REQUIRE(atf::env::has("PATH")); in ATF_TEST_CASE_BODY()
55 ATF_REQUIRE(atf::env::get("PATH", "default value") != "default value"); in ATF_TEST_CASE_BODY()
57 ATF_REQUIRE_EQ(atf::env::get("_UNDEFINED_VARIABLE_", "foo bar"), "foo bar"); in ATF_TEST_CASE_BODY()
67 ATF_REQUIRE(atf::env::has("PATH")); in ATF_TEST_CASE_BODY()
68 const std::string& oldval = atf::env::get("PATH"); in ATF_TEST_CASE_BODY()
69 atf::env::set("PATH", "foo-bar"); in ATF_TEST_CASE_BODY()
70 ATF_REQUIRE(atf::env::get("PATH") != oldval); in ATF_TEST_CASE_BODY()
71 ATF_REQUIRE_EQ(atf::env::get("PATH"), "foo-bar"); in ATF_TEST_CASE_BODY()
73 ATF_REQUIRE(!atf::env::has("_UNDEFINED_VARIABLE_")); in ATF_TEST_CASE_BODY()
74 atf::env::set("_UNDEFINED_VARIABLE_", "foo2-bar2"); in ATF_TEST_CASE_BODY()
75 ATF_REQUIRE_EQ(atf::env::get("_UNDEFINED_VARIABLE_"), "foo2-bar2"); in ATF_TEST_CASE_BODY()
85 ATF_REQUIRE(atf::env::has("PATH")); in ATF_TEST_CASE_BODY()
86 atf::env::unset("PATH"); in ATF_TEST_CASE_BODY()
87 ATF_REQUIRE(!atf::env::has("PATH")); in ATF_TEST_CASE_BODY()