Home | History | Annotate | Download | only in tests

Lines Matching full:setenv

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