16 #include <gtest/gtest.h> 65 setenv(
"HOME",
"/home/test2",
true);
76 setenv(
"HOME",
"/home/test3",
true);
77 setenv(
"ROS_HOME",
"/home/roshome3",
true);
88 setenv(
"ROS_HOME",
"/home/roshome4",
true);
93 EXPECT_EQ(getenv(
"HOME"),
nullptr);
96 int main(
int argc,
char ** argv)
98 testing::InitGoogleTest(&argc, argv);
99 return RUN_ALL_TESTS();
wordexp_t wordexp_ros_expansion
TEST_F(WordExpRosTestFixture, TestHomeUnsetRosHomeUnset)
int wordexp_ros(const char *words, wordexp_t *pwordexp, int flags)
Provide wordexp-like behavior, with one difference: in the case that $HOME is not defined - use $ROS_...
const char * env_ros_home
int main(int argc, char **argv)
wordexp_t wordexp_standard