Lines Matching refs:setenv
281 ASSERT_EQ(0, setenv("test-variable", "hello", 1)); in TEST()
295 EXPECT_EQ(-1, setenv(nullptr, "value", 0)); in TEST()
297 EXPECT_EQ(-1, setenv(nullptr, "value", 1)); in TEST()
299 EXPECT_EQ(-1, setenv("", "value", 0)); in TEST()
301 EXPECT_EQ(-1, setenv("", "value", 1)); in TEST()
303 EXPECT_EQ(-1, setenv("a=b", "value", 0)); in TEST()
305 EXPECT_EQ(-1, setenv("a=b", "value", 1)); in TEST()
309 TEST(UNISTD_TEST, setenv) { in TEST() argument
317 EXPECT_EQ(0, setenv("test-variable", a, 0)); in TEST()
321 EXPECT_EQ(0, setenv("test-variable", b, 0)); in TEST()
325 EXPECT_EQ(0, setenv("test-variable", c, 1)); in TEST()
360 ASSERT_EQ(0, setenv("test-variable", "a", 1)); in TEST()
372 EXPECT_EQ(0, setenv("test-variable", "post-clear", 1)); in TEST()
1462 setenv("PATH", dirname(tf.path), 1); in TEST()