Lines Matching refs:setenv
249 ASSERT_EQ(0, setenv("test-variable", "hello", 1)); in TEST()
263 EXPECT_EQ(-1, setenv(NULL, "value", 0)); in TEST()
265 EXPECT_EQ(-1, setenv(NULL, "value", 1)); in TEST()
267 EXPECT_EQ(-1, setenv("", "value", 0)); in TEST()
269 EXPECT_EQ(-1, setenv("", "value", 1)); in TEST()
271 EXPECT_EQ(-1, setenv("a=b", "value", 0)); in TEST()
273 EXPECT_EQ(-1, setenv("a=b", "value", 1)); in TEST()
277 TEST(unistd, setenv) { in TEST() argument
285 EXPECT_EQ(0, setenv("test-variable", a, 0)); in TEST()
289 EXPECT_EQ(0, setenv("test-variable", b, 0)); in TEST()
293 EXPECT_EQ(0, setenv("test-variable", c, 1)); in TEST()
328 ASSERT_EQ(0, setenv("test-variable", "a", 1)); in TEST()
340 EXPECT_EQ(0, setenv("test-variable", "post-clear", 1)); in TEST()