Home | History | Annotate | Download | only in tests

Lines Matching full:setenv

243   ASSERT_EQ(0, setenv("test-variable", "hello", 1));
259 EXPECT_EQ(-1, setenv(NULL, "value", 0));
261 EXPECT_EQ(-1, setenv(NULL, "value", 1));
263 EXPECT_EQ(-1, setenv("", "value", 0));
265 EXPECT_EQ(-1, setenv("", "value", 1));
267 EXPECT_EQ(-1, setenv("a=b", "value", 0));
269 EXPECT_EQ(-1, setenv("a=b", "value", 1));
273 TEST(unistd, setenv) {
281 EXPECT_EQ(0, setenv("test-variable", a, 0));
285 EXPECT_EQ(0, setenv("test-variable", b, 0));
289 EXPECT_EQ(0, setenv("test-variable", c, 1));
324 ASSERT_EQ(0, setenv("test-variable", "a", 1));
336 EXPECT_EQ(0, setenv("test-variable", "post-clear", 1));